Skip to content

Commit

Permalink
nicer format for ParseError
Browse files Browse the repository at this point in the history
  • Loading branch information
matcool committed Nov 24, 2024
1 parent 3b4acbe commit 14337bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/matjson.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ namespace matjson {
/// as it may change in the future. Instead, just access the fields directly.
inline operator std::string() const {
if (line) {
return this->message + " at line " + std::to_string(this->line) + ", column " +
return this->message + " at <input>:" + std::to_string(this->line) + ":" +
std::to_string(this->column);
}
return this->message;
Expand Down

0 comments on commit 14337bb

Please sign in to comment.