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 /013literal_string.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 '013literal_string.cc')
-rw-r--r-- | 013literal_string.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/013literal_string.cc b/013literal_string.cc index 0d4e3573..29a185b2 100644 --- a/013literal_string.cc +++ b/013literal_string.cc @@ -80,7 +80,7 @@ void slurp_quoted_comment_oblivious(istream& in, ostringstream& out) { if (brace_depth == 0) break; } if (in.eof() && brace_depth > 0) { - raise << "unbalanced '['\n"; + raise << "unbalanced '['\n" << end(); out.clear(); } } @@ -109,7 +109,7 @@ void slurp_quoted_comment_aware(istream& in, ostringstream& out) { out << c; if (c == ']') return; } - raise << "unbalanced '['\n"; + raise << "unbalanced '['\n" << end(); out.clear(); } |