MCPcopy Create free account
hub / github.com/SoarGroup/Soar / SetError

Method SetError

Core/CLI/src/cli_CommandLineInterface.cpp:437–447  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

435}
436
437bool 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
449bool CommandLineInterface::AppendError(const std::string& error)
450{

Callers 15

ParseMethod · 0.45
ParseMethod · 0.45
ParseMethod · 0.45
ParseMethod · 0.45
ParseMethod · 0.45
ParseMethod · 0.45
ParseMethod · 0.45
ParseMethod · 0.45
ParseMethod · 0.45
ParseMethod · 0.45
ParseMethod · 0.45
ParseMethod · 0.45

Calls 2

atMethod · 0.80
lengthMethod · 0.80

Tested by

no test coverage detected