mirror of
https://github.com/nlohmann/json.git
synced 2024-08-20 12:02:28 +02:00
fixed #156
This commit is contained in:
parent
ac4d4a0f66
commit
1adb9d62dd
|
@ -6301,6 +6301,11 @@ class basic_json
|
||||||
return "<parse error>";
|
return "<parse error>";
|
||||||
case token_type::end_of_input:
|
case token_type::end_of_input:
|
||||||
return "<end of input>";
|
return "<end of input>";
|
||||||
|
default:
|
||||||
|
{
|
||||||
|
// catch non-enum values
|
||||||
|
return "unknown token"; // LCOV_EXCL_LINE
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -6301,6 +6301,11 @@ class basic_json
|
||||||
return "<parse error>";
|
return "<parse error>";
|
||||||
case token_type::end_of_input:
|
case token_type::end_of_input:
|
||||||
return "<end of input>";
|
return "<end of input>";
|
||||||
|
default:
|
||||||
|
{
|
||||||
|
// catch non-enum values
|
||||||
|
return "unknown token"; // LCOV_EXCL_LINE
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue