2
2
mirror of https://github.com/octoleo/restic.git synced 2024-05-31 16:10:49 +00:00

Return error on backup

This commit is contained in:
Alexander Neumann 2015-02-03 22:05:46 +01:00
parent 26d3949c8b
commit 84ad6cf4d2

View File

@ -185,7 +185,7 @@ func (cmd CmdBackup) Execute(args []string) error {
_, id, err := arch.Snapshot(target, newTree, parentSnapshotID)
if err != nil {
fmt.Fprintf(os.Stderr, "error: %v\n", err)
return err
}
plen, err := s.PrefixLength(backend.Snapshot)