浏览代码

Rat out name of the disobedient caller

Alois Mahdal 11 年前
父节点
当前提交
74b38d1309
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2
    1
      include/core.sh

+ 2
- 1
include/core.sh 查看文件

127
     case $front in
127
     case $front in
128
         warn|debug|die|usage_is)    __echo_$src "$@" | $mkpretty >&2 ;;
128
         warn|debug|die|usage_is)    __echo_$src "$@" | $mkpretty >&2 ;;
129
         think)                      __echo_$src "$@" | $mkpretty     ;;
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
     esac
132
     esac
132
 }
133
 }
133
 
134