clean up failure message
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Thu, 19 Feb 2009 05:37:10 +0000 (00:37 -0500)
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Thu, 19 Feb 2009 05:37:10 +0000 (00:37 -0500)
src/share/ma/add_certifier

index 7c1441c0429867a83d9c95933a04d8ba8116bc5f..b917a7459e7a358baa43cb86159aadd0ec744788 100644 (file)
@@ -85,7 +85,7 @@ if [ -f "$keyID" ] ; then
     # + echo 'could not read key from '\''/root/dkg.gpg'\'''
 
     keyID=$(echo "$importinfo" | grep '^gpg: key ' | cut -f2 -d: | cut -f3 -d\ ) || \
     # + echo 'could not read key from '\''/root/dkg.gpg'\'''
 
     keyID=$(echo "$importinfo" | grep '^gpg: key ' | cut -f2 -d: | cut -f3 -d\ ) || \
-       failure "There were no gpg keys in the file."
+       failure "There were no gpg keys in the file $keyID."
     if [ -z "$keyID" ] || [ $(echo "$keyID" | wc -l) -ne 1 ] ; then
        failure "There was not exactly one gpg key in the file."
     fi
     if [ -z "$keyID" ] || [ $(echo "$keyID" | wc -l) -ne 1 ] ; then
        failure "There was not exactly one gpg key in the file."
     fi