aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Horn2011-04-18 17:45:35 +0200
committerMax Horn2011-04-18 18:22:03 +0200
commit7c13aa48cd3f103564ac1807f1152d94f1863979 (patch)
tree1a9d72d8249977c45a9a5f0d4fd6d538c5fa0906
parent7ccba1fced2f35a49b396ec58081e5bf084b6cab (diff)
downloadscummvm-rg350-7c13aa48cd3f103564ac1807f1152d94f1863979.tar.gz
scummvm-rg350-7c13aa48cd3f103564ac1807f1152d94f1863979.tar.bz2
scummvm-rg350-7c13aa48cd3f103564ac1807f1152d94f1863979.zip
COMMON: Tweak extra text handling in Common::Error
-rw-r--r--common/error.cpp2
-rw-r--r--common/error.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/common/error.cpp b/common/error.cpp
index 68702d40a0..eac8ba1ed1 100644
--- a/common/error.cpp
+++ b/common/error.cpp
@@ -84,7 +84,7 @@ Error::Error(ErrorCode code)
}
Error::Error(ErrorCode code, const String &desc)
- : _code(code), _desc(errorToString(code) + ": " + desc) {
+ : _code(code), _desc(errorToString(code) + " (" + desc + ")") {
}
diff --git a/common/error.h b/common/error.h
index 86d891b48b..dcbe670bfc 100644
--- a/common/error.h
+++ b/common/error.h
@@ -93,8 +93,8 @@ public:
/**
* Construct a new Error with the specified error code and an augmented
- * error message. Specifically, the provided extra text is appended
- * to the default message, with ": " inserted in between.
+ * error message. Specifically, the provided extra text is suitably
+ * appended to the default message.
*/
Error(ErrorCode code, const String &extra);