stringapi: Accept strings when setting command errors

This commit is contained in:
Ben Boeckel 2014-02-07 15:35:10 -05:00 committed by Brad King
parent f3efa3cd16
commit dddbd2c7fa

View File

@ -166,7 +166,7 @@ public:
/** /**
* Set the error message * Set the error message
*/ */
void SetError(const char* e) void SetError(const std::string& e)
{ {
this->Error = this->GetName(); this->Error = this->GetName();
this->Error += " "; this->Error += " ";