fixed linter errors
This commit is contained in:
parent
d38a61307d
commit
1ae02b3bc6
15 changed files with 242 additions and 117 deletions
11
server/errors.go
Normal file
11
server/errors.go
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
// errors are in a dedicated file, because they are used in more than one place
|
||||
package server
|
||||
|
||||
import "errors"
|
||||
|
||||
var ErrInvalidForm = errors.New("the form has invalid syntax")
|
||||
var ErrSavingToDatabase = errors.New("error saving to the database")
|
||||
var ErrWrongValue = errors.New("error converting or getting value")
|
||||
|
||||
// should not occur during runtime
|
||||
var ErrCatalogueNotFound = errors.New("cake catalogue not found on the server")
|
||||
Loading…
Add table
Add a link
Reference in a new issue