forked from TrueCloudLab/restic
Improve error message if no targets specified
This commit is contained in:
parent
e117f613af
commit
e5d4e33509
1 changed files with 1 additions and 1 deletions
|
@ -324,7 +324,7 @@ func runBackup(opts BackupOptions, gopts GlobalOptions, args []string) error {
|
||||||
// same time
|
// same time
|
||||||
args = append(args, fromfile...)
|
args = append(args, fromfile...)
|
||||||
if len(args) == 0 {
|
if len(args) == 0 {
|
||||||
return errors.Fatal("wrong number of parameters")
|
return errors.Fatal("nothing to backup, please specify target files/dirs")
|
||||||
}
|
}
|
||||||
|
|
||||||
target := make([]string, 0, len(args))
|
target := make([]string, 0, len(args))
|
||||||
|
|
Loading…
Reference in a new issue