oweb: remove Fault
Also, fix typo in the comment.
This commit is contained in:
parent
48c60c01e2
commit
60ef0e6b4a
10
oweb/oweb.go
10
oweb/oweb.go
@ -30,15 +30,7 @@ func Mistake(code, field, message string) error {
|
||||
}
|
||||
}
|
||||
|
||||
func Fault(code, message string) error {
|
||||
return &ollama.Error{
|
||||
Status: 500,
|
||||
Code: "fault",
|
||||
Message: message,
|
||||
}
|
||||
}
|
||||
|
||||
// Convinience errors
|
||||
// Convenience errors
|
||||
var (
|
||||
ErrNotFound = &ollama.Error{Status: 404, Code: "not_found"}
|
||||
ErrInternal = &ollama.Error{Status: 500, Code: "internal_error"}
|
||||
|
Loading…
x
Reference in New Issue
Block a user