Skip to content

Commit c03b3c1

Browse files
committed
return stacktrace on connection error too
1 parent ba80ef4 commit c03b3c1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

http-server/server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ app.use(async (req, res, next) => {
2121
await client.connect();
2222
req.devices = await client.getAllControllerData();
2323
} catch (err) {
24-
return res.status(500).json({ error: "Failed to connect to OpenRGB: " + err.message });
24+
return res.status(500).json({ error: "Failed to connect to OpenRGB: " + err.message, stacktrace: err });
2525
}
2626

2727
res.on("finish", async () => {

0 commit comments

Comments
 (0)