mirror of
https://github.com/cupcakearmy/autorestic.git
synced 2025-12-08 05:14:59 +00:00
better error handling
This commit is contained in:
@@ -216,7 +216,8 @@ func (l Location) Backup(cron bool, specificBackend string) []error {
|
||||
out, err = backend.ExecDocker(l, cmd)
|
||||
}
|
||||
if err != nil {
|
||||
errors = append(errors, err)
|
||||
colors.Error.Println(out)
|
||||
errors = append(errors, fmt.Errorf("%s@%s:\n%s%s", l.name, backend.name, out, err))
|
||||
continue
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user