From 570494f25cc753de72bfb7826dc34dd830984044 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Wed, 20 Jul 2016 10:08:42 -0700 Subject: 3114 Better error messages on missing traces in Mu scenarios. --- 050scenario.cc | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/050scenario.cc b/050scenario.cc index cdfab9c5..4ccef4a8 100644 --- a/050scenario.cc +++ b/050scenario.cc @@ -537,8 +537,14 @@ void check_trace(const string& expected) { if (curr_expected_line == SIZE(expected_lines)) return; } - raise << "missing [" << expected_lines.at(curr_expected_line).contents << "] " - << "in trace with label " << expected_lines.at(curr_expected_line).label << '\n' << end(); + if (Current_scenario && !Scenario_testing_scenario) + raise << "\nF - " << Current_scenario->name << ": missing [" << expected_lines.at(curr_expected_line).contents << "] " + << "in trace with label '" << expected_lines.at(curr_expected_line).label << "'\n" << end(); + else + raise << "missing [" << expected_lines.at(curr_expected_line).contents << "] " + << "in trace with label '" << expected_lines.at(curr_expected_line).label << "'\n" << end(); + if (!Hide_errors) + DUMP(expected_lines.at(curr_expected_line).label); Passed = false; } -- cgit 1.4.1-2-gfad0