mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
InternalError message changed
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@37 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
+2
-2
@@ -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;
|
||||
}
|
||||
|
||||
+2
-1
@@ -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/"))
|
||||
{}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user