diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2015-10-06 22:15:45 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2015-10-06 22:15:45 -0700 |
commit | 5f98a10cc78829a03c9fa5a137392e7d5e9030ac (patch) | |
tree | b88536e28f6d507c4b68b337423c0b6a4e28306c /013literal_string.cc | |
parent | 75aa3a98e2b9311d65df91523ec754d5a2770456 (diff) | |
download | mu-5f98a10cc78829a03c9fa5a137392e7d5e9030ac.tar.gz |
2258 - separate warnings from errors
At the lowest level I'm reluctantly starting to see the need for errors that stop the program in its tracks. Only way to avoid memory corruption and security issues. But beyond that core I still want to be as lenient as possible at higher levels of abstraction.
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 7424a31d..98cc85e7 100644 --- a/013literal_string.cc +++ b/013literal_string.cc @@ -73,7 +73,7 @@ void slurp_quoted_comment_oblivious(istream& in, ostringstream& out) { if (brace_depth == 0) break; } if (in.eof() && brace_depth > 0) { - raise << "unbalanced '['\n" << end(); + raise_error << "unbalanced '['\n" << end(); out.clear(); } } @@ -100,7 +100,7 @@ void slurp_quoted_comment_aware(istream& in, ostringstream& out) { out << c; if (c == ']') return; } - raise << "unbalanced '['\n" << end(); + raise_error << "unbalanced '['\n" << end(); out.clear(); } |