From c2f7df5fe5b1167200ed53b661f2fbe4b1470ad4 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Thu, 5 May 2016 08:13:45 -0700 Subject: 2924 --- 050scenario.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/050scenario.cc b/050scenario.cc index 97974a0a..30002d77 100644 --- a/050scenario.cc +++ b/050scenario.cc @@ -78,7 +78,10 @@ scenario parse_scenario(istream& in) { raise << "duplicate scenario name: " << result.name << '\n' << end(); Scenario_names.insert(result.name); skip_whitespace_and_comments(in); - assert(in.peek() == '['); + if (in.peek() != '[') { + raise << "Expected '[' after scenario " << result.name << '\n' << end(); + exit(0); + } // scenarios are take special 'code' strings so we need to ignore brackets // inside comments result.to_run = slurp_quoted(in); -- cgit 1.4.1-2-gfad0