From 5f721e461c3f61f9a8a50827dcfedac9c5152307 Mon Sep 17 00:00:00 2001 From: twanvl Date: Thu, 19 Oct 2006 19:28:03 +0000 Subject: [PATCH] InternalError message changed git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@37 0fc631ac-6414-0410-93d0-97cfa31319b6 --- src/main.cpp | 4 ++-- src/util/error.hpp | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 935d8333..ee92eee9 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -53,7 +53,7 @@ bool MSE::OnInit() { // we don't throw std::exception ourselfs, so this is probably something serious handle_error(InternalError(String(e.what(), IF_UNICODE(wxConvLocal, wxSTRING_MAXLEN) )), false); } catch (...) { - handle_error(InternalError(_("An unexpected exception occurred, this is a bug!\nPlease save your work (use 'save as' to so you don't overwrite things),\n and restart Magic Set Editor.\n\nYou can leave a bug report on http://magicseteditor.sourceforge.net/")), false); + handle_error(InternalError(_("An unexpected exception occurred!")), false); } packages.destroy(); return false; @@ -78,7 +78,7 @@ bool MSE::OnExceptionInMainLoop() { // we don't throw std::exception ourselfs, so this is probably something serious handle_error(InternalError(String(e.what(), IF_UNICODE(wxConvLocal, wxSTRING_MAXLEN) )), false); } catch (...) { - handle_error(InternalError(_("An unexpected exception occurred, this is a bug!\nPlease save your work (use 'save as' to so you don't overwrite things),\n and restart Magic Set Editor.\n\nYou can leave a bug report on http://magicseteditor.sourceforge.net/")), false); + handle_error(InternalError(_("An unexpected exception occurred!")), false); } return true; } diff --git a/src/util/error.hpp b/src/util/error.hpp index f0384cf3..0785e1a0 100644 --- a/src/util/error.hpp +++ b/src/util/error.hpp @@ -36,7 +36,8 @@ class Error { class InternalError : public Error { public: inline InternalError(const String& str) - : Error(_("An internal error occured, please contact the author:\n") + str) + : Error(_("An internal error occured:\n\n") + str + +_("\n\nPlease save your work (use 'save as' to so you don't overwrite things),\n and restart Magic Set Editor.\n\nYou should leave a bug report on http://magicseteditor.sourceforge.net/")) {} };