From 72d690aa2c0442a7e7e5a946bc31eed644be230f Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sun, 29 Sep 2019 17:36:08 -0700 Subject: GLK: QUEST: Change throw to error call --- engines/glk/quest/read_file.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'engines/glk') diff --git a/engines/glk/quest/read_file.cpp b/engines/glk/quest/read_file.cpp index 766b8b5013..af6cc9d496 100644 --- a/engines/glk/quest/read_file.cpp +++ b/engines/glk/quest/read_file.cpp @@ -26,6 +26,7 @@ #include "glk/quest/geas_runner.h" #include "glk/quest/streams.h" #include "common/util.h" +#include "common/textconsole.h" namespace Glk { namespace Quest { @@ -547,9 +548,7 @@ String string_int(int i) { } void report_error(String s) { - //cerr << s << endl; - cerr << s << endl; - throw s; + error("%s", s.c_str()); } Common::Array split_lines(String data) { -- cgit v1.2.3