| 435 | } |
| 436 | |
| 437 | bool CommandLineInterface::SetError(const std::string& error) |
| 438 | { |
| 439 | if (!m_Result.str().empty()) |
| 440 | if (m_Result.str().at(m_Result.str().length() - 1) != '\n') |
| 441 | { |
| 442 | m_Result << std::endl; |
| 443 | } |
| 444 | m_Result << error; |
| 445 | m_LastError = error; |
| 446 | return false; |
| 447 | } |
| 448 | |
| 449 | bool CommandLineInterface::AppendError(const std::string& error) |
| 450 | { |