mirror of
https://github.com/Fluffy-Bean/Lynxie.git
synced 2025-06-01 08:13:13 +00:00
Error handling
Embed responses
This commit is contained in:
parent
b93820e9d0
commit
f3929f2665
6 changed files with 169 additions and 48 deletions
10
app/errors.go
Normal file
10
app/errors.go
Normal file
|
@ -0,0 +1,10 @@
|
|||
package app
|
||||
|
||||
type Error struct {
|
||||
Msg string
|
||||
Err error
|
||||
}
|
||||
|
||||
func (e *Error) Ok() bool {
|
||||
return e.Err == nil
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue