mirror of
https://github.com/ollama/ollama.git
synced 2026-03-27 02:58:43 +07:00
better error message when model not found on pull
This commit is contained in:
@@ -131,7 +131,7 @@ func (c *Client) stream(ctx context.Context, method, path string, data any, fn f
|
||||
}
|
||||
|
||||
if errorResponse.Error != "" {
|
||||
return fmt.Errorf("stream: %s", errorResponse.Error)
|
||||
return fmt.Errorf(errorResponse.Error)
|
||||
}
|
||||
|
||||
if response.StatusCode >= 400 {
|
||||
|
||||
Reference in New Issue
Block a user