mirror of
https://github.com/octoleo/restic.git
synced 2025-01-11 18:18:45 +00:00
layout: improve error message for ParseLayout
This commit is contained in:
parent
e3e3a8a695
commit
c5eb36fe9d
@ -199,7 +199,7 @@ func ParseLayout(repo Filesystem, layout, defaultLayout, path string) (l Layout,
|
|||||||
return ParseLayout(repo, defaultLayout, "", path)
|
return ParseLayout(repo, defaultLayout, "", path)
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
return nil, errors.Errorf("unknown backend layout string %q, may be one of default/cloud/s3", layout)
|
return nil, errors.Errorf("unknown backend layout string %q, may be one of: default, cloud, s3", layout)
|
||||||
}
|
}
|
||||||
|
|
||||||
return l, nil
|
return l, nil
|
||||||
|
Loading…
Reference in New Issue
Block a user