diff --git a/toml/parser.hpp b/toml/parser.hpp index 15954a7..a965e1e 100644 --- a/toml/parser.hpp +++ b/toml/parser.hpp @@ -884,8 +884,7 @@ parse_array(location& loc) } else { - return err("[error] toml::parse_array: while reading an element of " - "an array\n" + val.unwrap_err()); + return err(val.unwrap_err()); } using lex_array_separator = sequence, character<','>>;