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 {
|
// Convenience errors
|
||||||
return &ollama.Error{
|
|
||||||
Status: 500,
|
|
||||||
Code: "fault",
|
|
||||||
Message: message,
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Convinience errors
|
|
||||||
var (
|
var (
|
||||||
ErrNotFound = &ollama.Error{Status: 404, Code: "not_found"}
|
ErrNotFound = &ollama.Error{Status: 404, Code: "not_found"}
|
||||||
ErrInternal = &ollama.Error{Status: 500, Code: "internal_error"}
|
ErrInternal = &ollama.Error{Status: 500, Code: "internal_error"}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user