aboutsummaryrefslogtreecommitdiff
path: root/gui/error.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gui/error.cpp')
-rw-r--r--gui/error.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/gui/error.cpp b/gui/error.cpp
index 3332eb533a..75bdab1a2a 100644
--- a/gui/error.cpp
+++ b/gui/error.cpp
@@ -18,9 +18,6 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
- * $URL$
- * $Id$
- *
*/
#include "common/error.h"
@@ -36,10 +33,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();
}