Skip to content

Commit

Permalink
Merge pull request #281 from Arnei/fix-proxyserver-crashing
Browse files Browse the repository at this point in the history
Avoid crashing by not throwing error
  • Loading branch information
KatrinIhler authored Apr 26, 2024
2 parents d112bee + 52dc46e commit 6a2fad4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion proxyServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ app.use('', (req, res, next) => {

let onReadFromBackend = function (error, response, body) {
if (error && (typeof error != 'object' || !error.hasOwnProperty('statusCode') || !error.hasOwnProperty('body'))) {
throw error;
console.error(error);
return;
}

// forward to client
Expand Down

0 comments on commit 6a2fad4

Please sign in to comment.