diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2015-07-25 00:02:20 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2015-07-25 00:02:20 -0700 |
commit | 35064671ef90ec6e35eafd9b15363058bf4f23f4 (patch) | |
tree | 3a0b4b02cbdd1b304deb52d1673083091a1ed12d /075scenario_console.cc | |
parent | a17fd65ca0124f544bd4de844f1bfe2d91b46ae6 (diff) | |
download | mu-35064671ef90ec6e35eafd9b15363058bf4f23f4.tar.gz |
1844 - explicitly end each trace line
More verbose, but it saves trouble when debugging; there's never something you thought should be traced but just never came out the other end. Also got rid of fatal errors entirely. Everything's a warning now, and code after a warning isn't guaranteed to run.
Diffstat (limited to '075scenario_console.cc')
-rw-r--r-- | 075scenario_console.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/075scenario_console.cc b/075scenario_console.cc index c5946617..bf58c46c 100644 --- a/075scenario_console.cc +++ b/075scenario_console.cc @@ -167,8 +167,10 @@ Recipe_ordinal["replace-in-console"] = REPLACE_IN_CONSOLE; case REPLACE_IN_CONSOLE: { assert(scalar(ingredients.at(0))); //? cerr << "console: " << Memory[CONSOLE] << '\n'; //? 1 - if (!Memory[CONSOLE]) - raise << "console not initialized\n" << die(); + if (!Memory[CONSOLE]) { + raise << "console not initialized\n" << end(); + break; + } long long int console_data = Memory[Memory[CONSOLE]+1]; //? cerr << "console data starts at " << console_data << '\n'; //? 1 long long int size = Memory[console_data]; // array size |