COMMON: Rename Error to ErrorCode, introduce new Error class
This commit is contained in:
parent
e9c228564a
commit
73f04118f3
22 changed files with 131 additions and 79 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue