Skip to content

Commit

Permalink
Merge pull request #245 from kivancsikert/init/fix-error-encoding
Browse files Browse the repository at this point in the history
Fix peripheral error encoding
  • Loading branch information
lptr authored Nov 11, 2024
2 parents 04d1ac5 + 62b85e0 commit fcbc325
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main/peripherals/Peripheral.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit fcbc325

Please sign in to comment.