mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-04-30 00:40:02 -05:00
impr: Improve network interface error handling
This commit is contained in:
@@ -6,7 +6,7 @@ namespace hex::plugin::builtin {
|
||||
|
||||
void registerNetworkEndpoints() {
|
||||
ContentRegistry::CommunicationInterface::registerNetworkEndpoint("pattern_editor/set_code", [](const nlohmann::json &data) -> nlohmann::json {
|
||||
auto code = data["code"].get<std::string>();
|
||||
auto code = data.at("code").get<std::string>();
|
||||
|
||||
EventManager::post<RequestSetPatternLanguageCode>(code);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user