From 723c87560459eaacb3e3b3f0d4666bd2d02be317 Mon Sep 17 00:00:00 2001 From: Niels Lohmann Date: Sat, 13 May 2017 19:56:38 +0200 Subject: [PATCH] :speech_balloon: replaced "backspace" with "backslash" #509 --- src/json.hpp | 2 +- test/src/unit-class_parser.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/json.hpp b/src/json.hpp index 7f3b30bb0..36d74ef02 100644 --- a/src/json.hpp +++ b/src/json.hpp @@ -11586,7 +11586,7 @@ class basic_json // other characters after escape default: - error_message = "invalid string: forbidden character after backspace"; + error_message = "invalid string: forbidden character after backslash"; return token_type::parse_error; } diff --git a/test/src/unit-class_parser.cpp b/test/src/unit-class_parser.cpp index 5866b9015..5a2ff3507 100644 --- a/test/src/unit-class_parser.cpp +++ b/test/src/unit-class_parser.cpp @@ -798,7 +798,7 @@ TEST_CASE("parser class") if (c > 0x1f) { CHECK_THROWS_WITH(parse_string(s.c_str()).parse(), - "[json.exception.parse_error.101] parse error at 3: syntax error - invalid string: forbidden character after backspace; last read '\"\\" + std::string(1, static_cast(c)) + "'"); + "[json.exception.parse_error.101] parse error at 3: syntax error - invalid string: forbidden character after backslash; last read '\"\\" + std::string(1, static_cast(c)) + "'"); } break; }