Skip to content

Commit

Permalink
fix error message with paired quotes
Browse files Browse the repository at this point in the history
Summary: As titled, just update the `TypeError` messages, no logical changes.

Reviewed By: derolf

Differential Revision: D62136190

fbshipit-source-id: 3c9cdb25145055afe2733a66052579ffdab20c95
  • Loading branch information
Qi Zhao authored and facebook-github-bot committed Sep 4, 2024
1 parent f9aa290 commit acf44d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions folly/json/dynamic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,14 @@ const char* dynamic::typeName() const {

TypeError::TypeError(const std::string& expected, dynamic::Type actual)
: std::runtime_error(sformat(
"TypeError: expected dynamic type `{}', but had type `{}'",
"TypeError: expected dynamic type '{}', but had type '{}'",
expected,
dynamic::typeName(actual))) {}

TypeError::TypeError(
const std::string& expected, dynamic::Type actual1, dynamic::Type actual2)
: std::runtime_error(sformat(
"TypeError: expected dynamic types `{}, but had types `{}' and `{}'",
"TypeError: expected dynamic types '{}', but had types '{}' and '{}'",
expected,
dynamic::typeName(actual1),
dynamic::typeName(actual2))) {}
Expand Down

0 comments on commit acf44d2

Please sign in to comment.