Skip to content

Commit

Permalink
fixup! refactor(coap-server): refactor request handling
Browse files Browse the repository at this point in the history
  • Loading branch information
JKRhb committed Jul 24, 2023
1 parent 5453321 commit c1a0776
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/binding-coap/src/coap-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,9 @@ export default class CoapServer implements ProtocolServer {
try {
this.streamContentResponse(res, content, { end: true });
} catch (err) {
error(`CoapServer on port ${this.getPort()} got internal error on observe '${req.url}': ${err.message}`);
error(
`CoapServer on port ${this.getPort()} got internal error on observe '${req.url}': ${err.message}`
);
this.sendResponse(res, "5.00", err.message);
}
};
Expand Down

0 comments on commit c1a0776

Please sign in to comment.