mirror of
https://github.com/octoleo/restic.git
synced 2024-11-23 13:17:42 +00:00
Return a fatal for location.Parse
This commit is contained in:
parent
83c35bd6b5
commit
2b9a408ccc
@ -296,7 +296,7 @@ func open(s string) (restic.Backend, error) {
|
|||||||
debug.Log("open", "parsing location %v", s)
|
debug.Log("open", "parsing location %v", s)
|
||||||
loc, err := location.Parse(s)
|
loc, err := location.Parse(s)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, errors.Fatalf("parsing repository location failed: %v", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
var be restic.Backend
|
var be restic.Backend
|
||||||
|
Loading…
Reference in New Issue
Block a user