Skip to content

Commit

Permalink
fixed #156
Browse files Browse the repository at this point in the history
  • Loading branch information
nlohmann committed Dec 17, 2015
1 parent ac4d4a0 commit 1adb9d6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/json.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6301,6 +6301,11 @@ class basic_json
return "<parse error>";
case token_type::end_of_input:
return "<end of input>";
default:
{
// catch non-enum values
return "unknown token"; // LCOV_EXCL_LINE
}
}
}

Expand Down
5 changes: 5 additions & 0 deletions src/json.hpp.re2c
Original file line number Diff line number Diff line change
Expand Up @@ -6301,6 +6301,11 @@ class basic_json
return "<parse error>";
case token_type::end_of_input:
return "<end of input>";
default:
{
// catch non-enum values
return "unknown token"; // LCOV_EXCL_LINE
}
}
}

Expand Down

0 comments on commit 1adb9d6

Please sign in to comment.