Commit d55facbd authored by Jonathan Schaeffer's avatar Jonathan Schaeffer
Browse files

adding erro reference

parent fe998980
...@@ -91,7 +91,7 @@ irods_rollback(){ ...@@ -91,7 +91,7 @@ irods_rollback(){
ils ${KEY}/previous.tar 2>/dev/null && ( ils ${KEY}/previous.tar 2>/dev/null && (
imv ${KEY}/previous.tar ${KEY}/latest.tar imv ${KEY}/previous.tar ${KEY}/latest.tar
if [[ $? -ne 0 ]]; then if [[ $? -ne 0 ]]; then
echo "[$KEY] Error $? recovering latest.tar Exit 1" echo "[$KEY] Error 008 recovering latest.tar Exit 1"
return 1 return 1
fi fi
) )
...@@ -100,7 +100,7 @@ irods_rollback(){ ...@@ -100,7 +100,7 @@ irods_rollback(){
ils ${KEY}/previous_to_delete.tar 2>/dev/null && ( ils ${KEY}/previous_to_delete.tar 2>/dev/null && (
imv ${KEY}/previous_to_delete.tar ${KEY}/previous.tar imv ${KEY}/previous_to_delete.tar ${KEY}/previous.tar
if [[ $? -ne 0 ]]; then if [[ $? -ne 0 ]]; then
echo "[$KEY] Error $? recovering previous.tar Exit 1" echo "[$KEY] Error 009 recovering previous.tar Exit 1"
return 1 return 1
fi fi
) )
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment