mirror of
https://github.com/gethomepage/homepage.git
synced 2026-01-10 10:32:09 +08:00
Add detailed Error component for service widgets
This commit is contained in:
@@ -68,6 +68,7 @@ export default async function transmissionProxyHandler(req, res) {
|
||||
|
||||
if (status !== 200) {
|
||||
logger.error("Error getting data from Transmission: %d. Data: %s", status, data);
|
||||
return res.status(500).send({error: {message:"Error getting data from Transmission", url, data}});
|
||||
}
|
||||
|
||||
if (contentType) res.setHeader("Content-Type", contentType);
|
||||
|
||||
Reference in New Issue
Block a user