Skip to content

Commit

Permalink
Adding support for md5
Browse files Browse the repository at this point in the history
  • Loading branch information
kopiro committed Aug 27, 2024
1 parent 63bfc52 commit d0f825e
Show file tree
Hide file tree
Showing 2 changed files with 191 additions and 99 deletions.
9 changes: 5 additions & 4 deletions src/cameraPlatform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,11 @@ export class CameraPlatform implements IndependentPlatformPlugin {
const cameraAccessory = new CameraAccessory(this, cameraConfig);
await cameraAccessory.setup();
} catch (err) {
this.log.error("Error during setup of camera", cameraConfig, err);
if (err instanceof Error) {
this.log.error("Stack trace:", err.stack);
}
this.log.error(
`Error during setup of camera "${cameraConfig.name}"`,
err,
err instanceof Error ? err.stack : []
);
}
});
}
Expand Down
Loading

0 comments on commit d0f825e

Please sign in to comment.