소스 검색

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