mirror of
https://github.com/catchorg/Catch2.git
synced 2025-07-30 02:37:37 +02:00
Return Clara parsing error message by const-ref
This commit is contained in:
@ -216,7 +216,7 @@ namespace Catch {
|
||||
return m_type == ResultType::Ok;
|
||||
}
|
||||
auto type() const -> ResultType { return m_type; }
|
||||
auto errorMessage() const -> std::string {
|
||||
auto errorMessage() const -> std::string const& {
|
||||
return m_errorMessage;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user