8000 Show a link to the doc when user passes an unsupported input type · smartcoder00/ArduinoJson@7eec01c · GitHub
[go: up one dir, main page]

Skip to content

Commit 7eec01c

Browse files
committed
Show a link to the doc when user passes an unsupported input type
1 parent 6c5fde2 commit 7eec01c

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ HEAD
88
* Fix double lookup in `to<JsonVariant>()`
99
* Fix double call to `size()` in `serializeMsgPack()`
1010
* Include `ARDUINOJSON_SLOT_OFFSET_SIZE` in the namespace name
11+
* Show a link to the documentation when user passes an unsupported input type
1112

1213
v6.21.2 (2023-04-12)
1314
-------

src/ArduinoJson/Deserialization/Reader.hpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ struct Reader {
1818
Reader(TSource& source) : source_(&source) {}
1919

2020
int read() {
21-
return source_->read(); // Error here? You passed an unsupported input type
21+
// clang-format off
22+
return source_->read(); // Error here? See https://arduinojson.org/v6/invalid-input/
23+
// clang-format on
2224
}
2325

2426
size_t readBytes(char* buffer, size_t length) {

0 commit comments

Comments
 (0)
0