Skip to content

Commit

Permalink
Update server.js
Browse files Browse the repository at this point in the history
  • Loading branch information
kovapatrik committed Apr 11, 2024
1 parent 083f921 commit 412b215
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions homebridge-ui/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ class UiServer extends HomebridgePluginUiServer {
return devices;
} catch (e) {
const msg = e instanceof Error ? e.stack : e;
this.logger.error(`Device discovery failed:\n${msg}`);
throw new RequestError(`Device discovery failed:\n${msg}`);
}
});
Expand All @@ -105,6 +106,7 @@ class UiServer extends HomebridgePluginUiServer {
return await this.api.getDeviceStatus(accountUuid, uuids);
} catch (e) {
const msg = e instanceof Error ? e.stack : e;
this.logger.error(`Failed to get initial device states:\n${msg}`);
throw new RequestError(`Failed to get initial device states:\n${msg}`);
}
});
Expand Down

0 comments on commit 412b215

Please sign in to comment.