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

Add error to messages

This commit is contained in:
Alexander Neumann 2014-09-21 15:58:52 +02:00
parent 629935db5c
commit 0a4c9aab36

View File

@ -21,12 +21,12 @@ func commandRestore(repo *khepri.Repository, args []string) error {
sn, err := khepri.LoadSnapshot(repo, id)
if err != nil {
log.Fatalf("error loading snapshot %s", id)
log.Fatalf("error loading snapshot %s: %v", id, err)
}
err = sn.RestoreAt(target)
if err != nil {
log.Fatalf("error restoring snapshot %s", id)
log.Fatalf("error restoring snapshot %s: %v", id, err)
}
log.Printf("%q restored to %q\n", id, target)