From 8d72e5652147a0218f36757fd9171f3f2beda887 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Thu, 21 Jul 2016 19:22:03 -0700 Subject: 3120 Always show instruction before any transforms in error messages. This is likely going to make some errors unclear because they *need* to show the original instruction. But if we don't have tests for those situations did they ever really work? --- 082scenario_screen.cc | 7 +++++++ 1 file changed, 7 insertions(+) (limited to '082scenario_screen.cc') diff --git a/082scenario_screen.cc b/082scenario_screen.cc index 20cf5c84..a3cf9393 100644 --- a/082scenario_screen.cc +++ b/082scenario_screen.cc @@ -156,6 +156,13 @@ if (curr.name == "assume-screen") { curr.products.at(0).set_value(SCREEN); } +:(scenario assume_screen_shows_up_in_errors) +% Hide_errors = true; +scenario error-in-assume-screen [ + assume-screen width, 5 +] ++error: scenario_error-in-assume-screen: missing type for 'width' in 'assume-screen width, 5' + //: screen-should-contain is a regular instruction :(before "End Primitive Recipe Declarations") SCREEN_SHOULD_CONTAIN, -- cgit 1.4.1-2-gfad0