Update man pages, and tweak default error return code.
[monkeysphere.git] / src / common
index 5d43fa4aa15a44a054037b46c35edf405c122e53..240de38886f5ae39568cf96cb23099946253bbe7 100644 (file)
@@ -20,14 +20,10 @@ export ETC
 ########################################################################
 ### UTILITY FUNCTIONS
 
-error() {
-    log "$1"
-    ERR=${2:-'1'}
-}
-
+# failure function.  exits with code 255, unless specified otherwise.
 failure() {
     echo "$1" >&2
-    exit ${2:-'1'}
+    exit ${2:-'255'}
 }
 
 # write output to stderr