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",