]> git.sur5r.net Git - bacula/bacula/commitdiff
Make mtx-changer errors clearer
authorKern Sibbald <kern@sibbald.com>
Wed, 10 Feb 2010 10:06:19 +0000 (11:06 +0100)
committerEric Bollengier <eric@eb.homelinux.org>
Mon, 2 Aug 2010 14:49:27 +0000 (16:49 +0200)
bacula/scripts/mtx-changer.in

index 3f5aadd624543354d7187449e5f5ec7751f61795..5aa992674792aad4328f4240ebd0be62c3ac6a53 100644 (file)
@@ -76,7 +76,7 @@ make_temp_file() {
   if test x${TMPFILE} = x; then
      TMPFILE="@working_dir@/mtx.$$"
      if test -f ${TMPFILE}; then
-       echo "Temp file security problem on: ${TMPFILE}"
+       echo "ERROR: Temp file security problem on: ${TMPFILE}"
        exit 1
      fi
   fi
@@ -111,7 +111,7 @@ check_parm_count() {
     pCount=$1
     pCountNeed=$2
     if test $pCount -lt $pCountNeed; then
-       echo "usage: mtx-changer ctl-device command [slot archive-device drive-index]"
+       echo "ERROR: usage: mtx-changer ctl-device command [slot archive-device drive-index]"
        echo "  Insufficient number of arguments given."
        if test $pCount -lt 2; then
            echo "  Mimimum usage is first two arguments ..."