mirror of
https://github.com/hazemKrimi/crimson-vault.git
synced 2026-05-01 18:20:27 +00:00
wip: custom logger and error handler
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
package types
|
||||
|
||||
import "fmt"
|
||||
|
||||
type Error struct {
|
||||
Messages []string
|
||||
Code int
|
||||
}
|
||||
|
||||
func (err Error) Error() string {
|
||||
return fmt.Sprintf("%v",
|
||||
err.Messages)
|
||||
}
|
||||
Reference in New Issue
Block a user