better error handling

This commit is contained in:
2021-12-06 12:13:18 +01:00
parent 0c37af5588
commit 982f9e0b5c
2 changed files with 3 additions and 2 deletions

View File

@@ -31,7 +31,7 @@ var backupCmd = &cobra.Command{
location, _ := internal.GetLocation(splitted[0])
errs := location.Backup(false, specificBackend)
for _, err := range errs {
colors.Error.Println(err)
colors.Error.Printf("%s\n\n", err)
errors++
}
}