mirror of
https://github.com/jkl1337/duplicacy.git
synced 2026-01-05 21:24:44 -06:00
Error out immediately if the storage can't be found
This commit is contained in:
@@ -372,7 +372,8 @@ func configRepository(context *cli.Context, init bool) {
|
|||||||
otherPreference := duplicacy.FindPreference(context.String("copy"))
|
otherPreference := duplicacy.FindPreference(context.String("copy"))
|
||||||
|
|
||||||
if otherPreference == nil {
|
if otherPreference == nil {
|
||||||
|
duplicacy.LOG_ERROR("STORAGE_NOTFOUND", "Storage '%s' can't be found", context.String("copy"))
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
otherStorage := duplicacy.CreateStorage(*otherPreference, false, 1)
|
otherStorage := duplicacy.CreateStorage(*otherPreference, false, 1)
|
||||||
|
|||||||
Reference in New Issue
Block a user