mirror of
https://github.com/restic/restic.git
synced 2026-10-12 21:17:12 +00:00
Improve error message if no targets specified
This commit is contained in:
1 parent
e117f613af
commit
e5d4e33509
1 file changed
+1
-1
@@ -324,7 +324,7 @@ func runBackup(opts BackupOptions, gopts GlobalOptions, args []string) error {
|
||||
// same time
|
||||
args = append(args, fromfile...)
|
||||
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))
|
||||
|
||||
Reference in new issue
Block a user