Selaa lähdekoodia

Rat out name of the disobedient caller

Alois Mahdal 11 vuotta sitten
vanhempi
commit
74b38d1309
1 muutettua tiedostoa jossa 2 lisäystä ja 1 poistoa
  1. 2
    1
      include/core.sh

+ 2
- 1
include/core.sh Näytä tiedosto

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