mirror of
https://github.com/restic/restic.git
synced 2025-08-22 09:07:26 +00:00
Improve error message if no targets specified
This commit is contained in:
@@ -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