diff options
author | Jameson Graef Rollins <jrollins@phys.columbia.edu> | 2008-06-19 18:09:41 -0400 |
---|---|---|
committer | Jameson Graef Rollins <jrollins@phys.columbia.edu> | 2008-06-19 18:09:41 -0400 |
commit | 7019354a75ca19ffd2e10f2e2b3dc89b480156bd (patch) | |
tree | 0acbae5dad6595840642330691796cd40cf6f8a9 /src/common | |
parent | f511119f57f076147acb2b5dccae597b34df6c8d (diff) |
Better handling of unknown users in server update-users. Updated TODO file.
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common | 13 |
1 files changed, 10 insertions, 3 deletions
@@ -18,10 +18,17 @@ ETC="/etc/monkeysphere" export ETC CACHE="/var/cache/monkeysphere" export CACHE +ERR=0 +export ERR ######################################################################## ### UTILITY FUNCTIONS +error() { + log "$1" + ERR=${2:-'1'} +} + failure() { echo "$1" >&2 exit ${2:-'1'} @@ -29,12 +36,12 @@ failure() { # write output to stderr log() { - echo -n "ms: " 1>&2 - echo "$@" 1>&2 + echo -n "ms: " >&2 + echo "$@" >&2 } loge() { - echo "$@" 1>&2 + echo "$@" >&2 } # cut out all comments(#) and blank lines from standard input |