From 7f73f464eab500d0dae8e24cfeff0fac2ccef9b5 Mon Sep 17 00:00:00 2001 From: biver Date: Wed, 8 Feb 2023 09:37:20 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A0=D0=B0=D1=81=D1=88=D0=B8=D1=80=D1=8F?= =?UTF-8?q?=D0=B5=D0=BC=20=D0=B2=D1=8B=D0=B2=D0=BE=D0=B4=20=D0=B8=D0=BD?= =?UTF-8?q?=D1=84=D0=BE=D1=80=D0=BC=D0=B0=D1=86=D0=B8=D0=B8=20=D0=BE=D0=B1?= =?UTF-8?q?=20=D0=BE=D1=88=D0=B8=D0=B1=D0=BA=D0=B5=20=D0=BF=D1=80=D0=B8=20?= =?UTF-8?q?=D1=87=D1=82=D0=B5=D0=BD=D0=B8=D0=B8=20json?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/JsonUtils.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/utils/JsonUtils.cpp b/src/utils/JsonUtils.cpp index f04f910f..fa89de73 100644 --- a/src/utils/JsonUtils.cpp +++ b/src/utils/JsonUtils.cpp @@ -22,7 +22,7 @@ bool jsonRead(const String& json, String key, long& value, bool e) { return false; } else if (!doc.containsKey(key)) { if (e) { - SerialPrint("E", F("jsonRead"), key + " missing"); + SerialPrint("E", F("jsonRead"), key + " missing in " + json); jsonErrorDetected(); } return false; @@ -42,7 +42,7 @@ bool jsonRead(const String& json, String key, float& value, bool e) { return false; } else if (!doc.containsKey(key)) { if (e) { - SerialPrint("E", F("jsonRead"), key + " missing"); + SerialPrint("E", F("jsonRead"), key + " missing in " + json); jsonErrorDetected(); } return false; @@ -62,7 +62,7 @@ bool jsonRead(const String& json, String key, String& value, bool e) { return false; } else if (!doc.containsKey(key)) { if (e) { - SerialPrint("E", F("jsonRead"), key + " missing"); + SerialPrint("E", F("jsonRead"), key + " missing in " + json); jsonErrorDetected(); } return false; @@ -89,7 +89,7 @@ bool jsonRead(const String& json, String key, int& value, bool e) { return false; } else if (!doc.containsKey(key)) { if (e) { - SerialPrint("E", F("jsonRead"), key + " missing"); + SerialPrint("E", F("jsonRead"), key + " missing in " + json); jsonErrorDetected(); } return false;