COMMON: Tweak extra text handling in Common::Error
This commit is contained in:
parent
7ccba1fced
commit
7c13aa48cd
2 changed files with 3 additions and 3 deletions
|
@ -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 + ")") {
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue