Show a link to the doc when user passes an unsupported input type

This commit is contained in:
Benoit Blanchon
2023-07-23 16:39:24 +02:00
parent 6c5fde2a55
commit 7eec01cdd6
2 changed files with 4 additions and 1 deletions

View File

@ -8,6 +8,7 @@ HEAD
* Fix double lookup in `to<JsonVariant>()`
* Fix double call to `size()` in `serializeMsgPack()`
* Include `ARDUINOJSON_SLOT_OFFSET_SIZE` in the namespace name
* Show a link to the documentation when user passes an unsupported input type
v6.21.2 (2023-04-12)
-------

View File

@ -18,7 +18,9 @@ struct Reader {
Reader(TSource& source) : source_(&source) {}
int read() {
return source_->read(); // Error here? You passed an unsupported input type
// clang-format off
return source_->read(); // Error here? See https://arduinojson.org/v6/invalid-input/
// clang-format on
}
size_t readBytes(char* buffer, size_t length) {