oweb: remove Fault

Also, fix typo in the comment.
This commit is contained in:
Blake Mizerany 2024-03-31 15:00:25 -07:00
parent 48c60c01e2
commit 60ef0e6b4a

View File

@ -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"}