Bläddra i källkod

Rat out name of the disobedient caller

Alois Mahdal 11 år sedan
förälder
incheckning
74b38d1309
1 ändrade filer med 2 tillägg och 1 borttagningar
  1. 2
    1
      include/core.sh

+ 2
- 1
include/core.sh Visa fil

@@ -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