mirror of
https://codeberg.org/DawnMagnet/reflect-cpp
synced 2026-12-03 00:26:19 +08:00
@@ -17,7 +17,7 @@ inline std::string to_single_error_message(
|
|||||||
std::optional<std::string> _msg_prefix = std::nullopt,
|
std::optional<std::string> _msg_prefix = std::nullopt,
|
||||||
size_t _err_limit = 10) {
|
size_t _err_limit = 10) {
|
||||||
if (_errors.size() == 1) {
|
if (_errors.size() == 1) {
|
||||||
return std::move(_errors[0].what());
|
return _errors[0].what();
|
||||||
} else {
|
} else {
|
||||||
std::stringstream stream;
|
std::stringstream stream;
|
||||||
stream << (_msg_prefix
|
stream << (_msg_prefix
|
||||||
|
|||||||
Reference in New Issue
Block a user