mirror of
https://github.com/zebrajr/ollama.git
synced 2025-12-06 00:19:51 +01:00
server: add hint to the error message when model path access fails (#10843)
This commit is contained in:
parent
f18e0cb550
commit
eda472df1b
|
|
@ -116,7 +116,7 @@ func (mp ModelPath) BaseURL() *url.URL {
|
|||
func GetManifestPath() (string, error) {
|
||||
path := filepath.Join(envconfig.Models(), "manifests")
|
||||
if err := os.MkdirAll(path, 0o755); err != nil {
|
||||
return "", err
|
||||
return "", fmt.Errorf("%w: ensure path elements are traversable", err)
|
||||
}
|
||||
|
||||
return path, nil
|
||||
|
|
@ -139,7 +139,7 @@ func GetBlobsPath(digest string) (string, error) {
|
|||
}
|
||||
|
||||
if err := os.MkdirAll(dirPath, 0o755); err != nil {
|
||||
return "", err
|
||||
return "", fmt.Errorf("%w: ensure path elements are traversable", err)
|
||||
}
|
||||
|
||||
return path, nil
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user