aboutsummaryrefslogtreecommitdiff
path: root/engines/glk/quest/read_file.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/glk/quest/read_file.cpp')
-rw-r--r--engines/glk/quest/read_file.cpp5
1 files changed, 2 insertions, 3 deletions
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<String> split_lines(String data) {