Browse Source

Rat out name of the disobedient caller

Alois Mahdal 11 years ago
parent
commit
74b38d1309
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      include/core.sh

+ 2
- 1
include/core.sh View File

@@ -127,7 +127,8 @@ __echo() {
127 127
     case $front in
128 128
         warn|debug|die|usage_is)    __echo_$src "$@" | $mkpretty >&2 ;;
129 129
         think)                      __echo_$src "$@" | $mkpretty     ;;
130
-        *)                          echo "do not call __echo* directly" >&2; exit 2 ;;
130
+        *)      echo "do not call __echo* directly: $internal" >&2;
131
+                exit 2                                               ;;
131 132
     esac
132 133
 }
133 134