Explorar el Código

Rat out name of the disobedient caller

Alois Mahdal hace 11 años
padre
commit
74b38d1309
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2
    1
      include/core.sh

+ 2
- 1
include/core.sh Ver fichero

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