mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Catch errors when responding from proxy error (#1465)
Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
This commit is contained in:
parent
5d077b0bb4
commit
c92d1e614a
@ -131,7 +131,11 @@ export class LensProxy {
|
||||
}
|
||||
}
|
||||
}
|
||||
res.writeHead(500).end("Oops, something went wrong.")
|
||||
try {
|
||||
res.writeHead(500).end("Oops, something went wrong.")
|
||||
} catch (e) {
|
||||
logger.error(`[LENS-PROXY]: Failed to write headers: `, e)
|
||||
}
|
||||
})
|
||||
|
||||
return proxy;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user