diff --git a/toml/region.hpp b/toml/region.hpp index b6ba119..18c5248 100644 --- a/toml/region.hpp +++ b/toml/region.hpp @@ -448,7 +448,7 @@ inline std::string format_underline(const std::string& message, if(message.size() > 7 && message.substr(0, 7) == "[error]") { retval << color::bold << color::red << "[error]" << color::reset - << color::bold << message.substr(8) << color::reset << '\n'; + << color::bold << message.substr(7) << color::reset << '\n'; } else {