mirror of https://github.com/Icinga/icinga2.git
parent
c15c9cce5e
commit
38bdbbbd0d
|
@ -133,6 +133,7 @@ char *i2_eval(void *uframe, const char *text, Tcl_Interp *interp)
|
|||
} catch (const ScriptError& ex) {
|
||||
DebugInfo di = ex.GetDebugInfo();
|
||||
|
||||
if (di.FirstLine != 0) {
|
||||
String text = l_Lines[di.Path];
|
||||
|
||||
std::vector<String> lines;
|
||||
|
@ -160,6 +161,7 @@ char *i2_eval(void *uframe, const char *text, Tcl_Interp *interp)
|
|||
msgbuf << String(pathInfo.GetLength(), ' ');
|
||||
msgbuf << String(start, ' ') << String(len, '^') << "\n";
|
||||
}
|
||||
}
|
||||
|
||||
msgbuf << ex.what();
|
||||
} catch (const std::exception& ex) {
|
||||
|
|
Loading…
Reference in New Issue