Add error to messages

This commit is contained in:
Alexander Neumann 2014-09-21 15:58:52 +02:00
parent 629935db5c
commit 0a4c9aab36
1 changed files with 2 additions and 2 deletions

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)