aboutsummaryrefslogtreecommitdiff
path: root/engines/glk/quest/geas_state.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/glk/quest/geas_state.cpp')
-rw-r--r--engines/glk/quest/geas_state.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/glk/quest/geas_state.cpp b/engines/glk/quest/geas_state.cpp
index 985b4e935e..3a9b4115c8 100644
--- a/engines/glk/quest/geas_state.cpp
+++ b/engines/glk/quest/geas_state.cpp
@@ -72,7 +72,7 @@ public:
ofstream ofs;
ofs.open(savename.c_str());
if (!ofs.is_open())
- throw String("Unable to open \"" + savename + "\"");
+ error("Unable to open \"%s\"", savename.c_str());
ofs << "QUEST300" << char(0) << gamename << char(0);
String tmp = o.str();
for (uint i = 0; i < tmp.size(); i ++)