Skip to content

Commit 5550ca4

Browse files
committed
document the triggered line in error messages
the triggered line is critical information when determining failure root cause
1 parent e11435c commit 5550ca4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2622,8 +2622,8 @@ void CMUSHclientDoc::ExecuteTriggerScript (CTrigger * trigger_item,
26222622
return;
26232623

26242624
CString strType = "trigger";
2625-
CString strReason = TFormat ("processing trigger \"%s\"",
2626-
(LPCTSTR) trigger_item->strLabel);
2625+
CString strReason = TFormat ("processing trigger \"%s\" on line \"%s\"",
2626+
(LPCTSTR) trigger_item->strLabel, (LPCTSTR) strCurrentLine);
26272627

26282628
// get unlabelled trigger's internal name
26292629
const char * pLabel = trigger_item->strLabel;

0 commit comments

Comments
 (0)