Permalink
Browse files

print error when blockdiff_dump fails

  • Loading branch information...
1 parent c40d898 commit b8a4a0844bd39fe791a4559d6d671f89c03def4d @kazuho committed Jan 20, 2010
Showing with 3 additions and 0 deletions.
  1. +3 −0 ssh_lvm_dump
View
@@ -45,6 +45,9 @@ if [ "$EXIT_CODE" -eq 0 ] ; then
echo "running: $SSH_BLOCKDIFF_DUMP \"$SSH_ARGS\" \"$SS_PATH\"..." >&2
$SSH_BLOCKDIFF_DUMP "$SSH_ARGS" "$SS_PATH"
EXIT_CODE=$?
+ if [ "$EXIT_CODE" -ne 0 ] ; then
+ echo " error: $SSH_BLOCKDIFF_DUMP exitted with code:$EXIT_CODE" >&2
+ fi
fi
# remove snapshot

0 comments on commit b8a4a08

Please sign in to comment.