mirror of
https://github.com/ollama/ollama.git
synced 2025-05-11 18:36:41 +02:00
better error message when model not found on pull
This commit is contained in:
parent
aedf3d1f38
commit
536028c35a
2 changed files with 7 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue