diff options
author | Carlo Teubner <carlo@cteubner.net> | 2022-03-30 19:25:18 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2022-03-30 19:54:11 (GMT) |
commit | 93dce4b4bf698563e4a72f4c265bda82626447a1 (patch) | |
tree | b79f6c4c49b3ff10e0070ed3a206189cba2cea21 /Source | |
parent | a7b325e203a45f3c8d4a64fd3338079e0a14e250 (diff) | |
download | CMake-93dce4b4bf698563e4a72f4c265bda82626447a1.zip CMake-93dce4b4bf698563e4a72f4c265bda82626447a1.tar.gz CMake-93dce4b4bf698563e4a72f4c265bda82626447a1.tar.bz2 |
string(JSON): fix error message on invalid mode
The `GET_ARRAY` and `MEMBERS` modes were removed during development and
review of commit 8eab76eb84 (string(JSON): Adds JSON parsing support to
the string command, 2020-08-24, v3.19.0-rc1~159^2), but were
accidentally left in an error message.
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmStringCommand.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmStringCommand.cxx b/Source/cmStringCommand.cxx index e5935b8..900854e 100644 --- a/Source/cmStringCommand.cxx +++ b/Source/cmStringCommand.cxx @@ -1106,8 +1106,8 @@ bool HandleJSONCommand(std::vector<std::string> const& arguments, mode != "EQUAL"_s) { throw json_error( { "got an invalid mode '"_s, mode, - "', expected one of GET, GET_ARRAY, TYPE, MEMBER, MEMBERS," - " LENGTH, REMOVE, SET, EQUAL"_s }); + "', expected one of GET, TYPE, MEMBER, LENGTH, REMOVE, SET, " + " EQUAL"_s }); } const auto& jsonstr = args.PopFront("missing json string argument"_s); |