Explorar o código

* How about we show the full line that is being processed as well in an ERROR loading.

svn: 530
Bryan Drewery %!s(int64=22) %!d(string=hai) anos
pai
achega
2161b6c619
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      src/users.c

+ 1 - 0
src/users.c

@@ -815,6 +815,7 @@ int readuserfile(char *file, struct userrec **ret)
          if (s[0] && lasthand[0] == '*' && lasthand[1] == CHANS_NAME[1]) {
           if (Tcl_Eval(interp, s) != TCL_OK) {
            putlog(LOG_MISC, "*", "Tcl error in userfile on line %d", line);
+           putlog(LOG_MISC, "*", "Line: %s", s);
            putlog(LOG_MISC, "*", "%s", Tcl_GetVar(interp, "errorInfo", TCL_GLOBAL_ONLY));
            return 1;
           }