diff options
Diffstat (limited to 'gui/error.cpp')
-rw-r--r-- | gui/error.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gui/error.cpp b/gui/error.cpp index 3332eb533a..f6da795d40 100644 --- a/gui/error.cpp +++ b/gui/error.cpp @@ -36,10 +36,10 @@ void displayErrorDialog(const char *text) { alert.runModal(); } -void displayErrorDialog(Common::Error error, const char *extraText) { +void displayErrorDialog(const Common::Error &error, const char *extraText) { Common::String errorText(extraText); errorText += " "; - errorText += _(Common::errorToString(error)); + errorText += _(error.getDesc()); GUI::MessageDialog alert(errorText); alert.runModal(); } |