fixed linter errors

This commit is contained in:
Bronku 2025-07-16 22:57:36 +02:00
parent d38a61307d
commit 1ae02b3bc6
15 changed files with 242 additions and 117 deletions

11
server/errors.go Normal file
View 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")