From 62b85e05259c7346e355584e0f747cdfdb3033fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=B3r=C3=A1nt=20Pint=C3=A9r?= Date: Mon, 11 Nov 2024 23:51:00 +0100 Subject: [PATCH] Fix peripheral error encoding --- main/peripherals/Peripheral.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/peripherals/Peripheral.hpp b/main/peripherals/Peripheral.hpp index f88f969c..8f533d0c 100644 --- a/main/peripherals/Peripheral.hpp +++ b/main/peripherals/Peripheral.hpp @@ -216,7 +216,7 @@ class PeripheralManager } catch (const std::exception& e) { Log.error("Failed to create '%s' peripheral '%s' because %s", type.c_str(), name.c_str(), e.what()); - initJson["error"] = e.what(); + initJson["error"] = String(e.what()); return false; } catch (...) { Log.error("Failed to create '%s' peripheral '%s' because of an unknown exception",