mirror of
https://github.com/aykhans/oh-my-url.git
synced 2025-07-05 09:45:58 +00:00
🐛 Fix error handling and logging
This commit is contained in:
9
app/errors/api.go
Normal file
9
app/errors/api.go
Normal file
@ -0,0 +1,9 @@
|
||||
package errors
|
||||
|
||||
import "errors"
|
||||
|
||||
var (
|
||||
ErrAPITemplateParsing = errors.New("an error occured while parsing template please try again later")
|
||||
ErrAPIInvalidURL = errors.New("invalid URL")
|
||||
ErrAPI503 = errors.New("service unavailable please try again later")
|
||||
)
|
9
app/errors/db.go
Normal file
9
app/errors/db.go
Normal file
@ -0,0 +1,9 @@
|
||||
package errors
|
||||
|
||||
import "errors"
|
||||
|
||||
var (
|
||||
ErrDBCreateURL = errors.New("an error occured please try again later")
|
||||
ErrDBGetURL = errors.New("an error occured please try again later")
|
||||
ErrDBURLNotFound = errors.New("url not found")
|
||||
)
|
Reference in New Issue
Block a user