Correct debug messages in Pyload widget

Closes #733
pull/745/head
shamoon 2 years ago committed by GitHub
parent 21c0c687cd
commit 88934ec39a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -84,9 +84,9 @@ export default async function pyloadProxyHandler(req, res) {
if (data?.error || status !== 200) {
try {
return res.status(status).send({error: {message: "HTTP error communicating with Plex API", data: Buffer.from(data).toString()}});
return res.status(status).send({error: {message: "HTTP error communicating with Pyload API", data: Buffer.from(data).toString()}});
} catch (e) {
return res.status(status).send({error: {message: "HTTP error communicating with Plex API", data}});
return res.status(status).send({error: {message: "HTTP error communicating with Pyload API", data}});
}
}
@ -95,7 +95,7 @@ export default async function pyloadProxyHandler(req, res) {
}
} catch (e) {
logger.error(e);
return res.status(500).send({error: {message: `Error communicating with Plex API: ${e.toString()}`}});
return res.status(500).send({error: {message: `Error communicating with Pyload API: ${e.toString()}`}});
}
return res.status(400).json({ error: 'Invalid proxy service type' });

Loading…
Cancel
Save