From acc4792d2f7c787aad064876a1eb2d00bdf076b2 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Mon, 21 Mar 2016 02:25:52 -0700 Subject: 2803 Show more thorough information about instructions in the trace, but keep the original form in error messages. --- 092persist.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '092persist.cc') diff --git a/092persist.cc b/092persist.cc index 3e833f35..8894d463 100644 --- a/092persist.cc +++ b/092persist.cc @@ -9,7 +9,7 @@ put(Recipe_ordinal, "restore", RESTORE); :(before "End Primitive Recipe Checks") case RESTORE: { if (SIZE(inst.ingredients) != 1) { - raise << maybe(get(Recipe, r).name) << "'restore' requires exactly one ingredient, but got " << to_string(inst) << '\n' << end(); + raise << maybe(get(Recipe, r).name) << "'restore' requires exactly one ingredient, but got " << to_original_string(inst) << '\n' << end(); break; } string filename; @@ -73,7 +73,7 @@ put(Recipe_ordinal, "save", SAVE); :(before "End Primitive Recipe Checks") case SAVE: { if (SIZE(inst.ingredients) != 2) { - raise << maybe(get(Recipe, r).name) << "'save' requires exactly two ingredients, but got " << to_string(inst) << '\n' << end(); + raise << maybe(get(Recipe, r).name) << "'save' requires exactly two ingredients, but got " << to_original_string(inst) << '\n' << end(); break; } if (is_literal_string(inst.ingredients.at(0))) { -- cgit 1.4.1-2-gfad0