packaging: print more specific error messages when builddeb fails
authormuxator <a.mux@inwind.it>
Tue, 09 Oct 2018 21:39:39 +0200
changeset 40102 f9c5f7b048b0
parent 40101 57500950f40e
child 40103 01425e3c2645
packaging: print more specific error messages when builddeb fails
contrib/packaging/builddeb
--- a/contrib/packaging/builddeb	Tue Oct 09 12:56:11 2018 -0700
+++ b/contrib/packaging/builddeb	Tue Oct 09 21:39:39 2018 +0200
@@ -49,7 +49,7 @@
 set -u
 
 if [ ! -d .hg ]; then
-    echo 'You are not inside a Mercurial repository!' 1>&2
+    printf "You are inside %s, which is not the root of a Mercurial repository\n" $(pwd) 1>&2
     exit 1
 fi
 
@@ -71,7 +71,7 @@
 
 if [ "$BUILD" ]; then
     if [ -d debian ] ; then
-        echo "Error! debian control directory already exists!"
+        printf "Error! debian control directory already exists at %s/debian\n" $(pwd)
         exit 1
     fi