diff --git a/toml/parser.hpp b/toml/parser.hpp
index faa7213..d7108d4 100644
--- a/toml/parser.hpp
+++ b/toml/parser.hpp
@@ -1421,7 +1421,7 @@ result
parse_toml_file(location& loc)
const auto first = loc.iter();
if(first == loc.end())
{
- return err(std::string("toml::detail::parse_toml_file: input is empty"));
+ return ok(toml::table{});
}
table data;