[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

r10329 - /man-cgi/extractor/list-manpages-dist.sh



Author: jfs
Date: Wed Nov  6 20:57:43 2013
New Revision: 10329

URL: http://svn.debian.org/wsvn/?sc=1&rev=10329
Log:
Improve error messages

Modified:
    man-cgi/extractor/list-manpages-dist.sh

Modified: man-cgi/extractor/list-manpages-dist.sh
URL: http://svn.debian.org/wsvn/man-cgi/extractor/list-manpages-dist.sh?rev=10329&op=diff
==============================================================================
--- man-cgi/extractor/list-manpages-dist.sh	(original)
+++ man-cgi/extractor/list-manpages-dist.sh	Wed Nov  6 20:57:43 2013
@@ -17,11 +17,11 @@
 [ -z "$EXTRACTORDIR" ] && EXTRACTORDIR=$MYDIR
 
 if [ ! -d "$EXTRACTORDIR" ] ; then
-        echo "Cannot find the directory $EXTRACTORDIR with the scripts!" >&2
+        echo "ERROR: Cannot find the directory $EXTRACTORDIR with the scripts!" >&2
         exit 1
 fi
 if [ ! -d "$MIRRORDIR" ] || [ ! -d "$MIRRORDIR/pool" ] ; then
-        echo "Cannot find a Debian mirror archive at $MIRRORDIR!" >&2
+        echo "ERROR: Cannot find a Debian mirror archive at $MIRRORDIR!" >&2
         exit 1
 fi
 
@@ -33,7 +33,7 @@
 
 dist=$1
 if [ -z "$dist" ] ; then
-	echo "ERROR: Distribution is not defined" >&1
+	echo "ERROR: Distribution is not defined" >&2
 	usage
 	exit 1
 fi


Reply to: