changeset 40102:f9c5f7b048b0

packaging: print more specific error messages when builddeb fails
author muxator <a.mux@inwind.it>
date Tue, 09 Oct 2018 21:39:39 +0200
parents 57500950f40e
children 01425e3c2645
files contrib/packaging/builddeb
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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