feat: pass source_location to exception

This commit is contained in:
ToruNiina
2019-10-31 22:23:31 +09:00
parent 3ca712a8da
commit 41eb1d6887
4 changed files with 32 additions and 24 deletions

View File

@@ -76,7 +76,8 @@ inline ::toml::value operator"" _toml(const char* str, std::size_t len)
}
else // none of them.
{
throw ::toml::syntax_error(data.unwrap_err());
throw ::toml::syntax_error(data.unwrap_err(),
source_location(std::addressof(loc)));
}
}