From 78a0fc2091d5bbf128ae367a1e9941fe72b3b9ff Mon Sep 17 00:00:00 2001 From: proddy Date: Fri, 26 Jul 2024 13:25:19 +0200 Subject: [PATCH] add optional object to be included in error message --- src/command.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/command.h b/src/command.h index 564d43b21..38a54b405 100644 --- a/src/command.h +++ b/src/command.h @@ -143,7 +143,7 @@ class Command { static std::vector cmdfunctions_; // the list of commands - static uint8_t json_message(uint8_t error_code, const char * message, const JsonObject output); + static uint8_t json_message(uint8_t error_code, const char * message, JsonObject output, const char * object = nullptr); }; class SUrlParser {