diff --git a/include/toml11/try_get.hpp b/include/toml11/try_get.hpp index 09e5a37..eff136b 100644 --- a/include/toml11/try_get.hpp +++ b/include/toml11/try_get.hpp @@ -219,7 +219,7 @@ try_get(const basic_value& v) noexcept const auto loc = v.location(); return err(make_error_info("toml::try_get(): bad_cast to " "std::chrono::system_clock::time_point", loc, - "the actual type is " + to_string(v.type())), loc); + "the actual type is " + to_string(v.type()))); } } }