mirror of
https://github.com/ollama/ollama.git
synced 2025-12-07 04:12:26 +01:00
return error in generate response
This commit is contained in:
@@ -15,6 +15,7 @@ func (e Error) Error() string {
|
||||
if e.Message == "" {
|
||||
return fmt.Sprintf("%d %v", e.Code, strings.ToLower(http.StatusText(int(e.Code))))
|
||||
}
|
||||
|
||||
return e.Message
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user