COMMON: Tweak extra text handling in Common::Error

This commit is contained in:
Max Horn 2011-04-18 17:45:35 +02:00
parent 7ccba1fced
commit 7c13aa48cd
2 changed files with 3 additions and 3 deletions

View file

@ -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 + ")") {
}

View file

@ -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);