better error message when model not found on pull

This commit is contained in:
Bruce MacDonald 2023-07-24 17:48:17 -04:00
parent aedf3d1f38
commit 536028c35a
2 changed files with 7 additions and 2 deletions

View file

@ -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 {