summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorJameson Graef Rollins <jrollins@phys.columbia.edu>2008-07-10 14:30:21 -0400
committerJameson Graef Rollins <jrollins@phys.columbia.edu>2008-07-10 14:30:21 -0400
commit5fadec09dcd44c4dcad657a0f3d96878b592b77b (patch)
tree1f551bc1350c39c185a2c0912c6b7e2161578244 /src/common
parentc8b42c1d77005ab3f41d20cc2524f4307086ec4f (diff)
Update man pages, and tweak default error return code.
Diffstat (limited to 'src/common')
-rw-r--r--src/common8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/common b/src/common
index 5d43fa4..240de38 100644
--- a/src/common
+++ b/src/common
@@ -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