mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Catch errors when responding from proxy error (#1416)
Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
This commit is contained in:
parent
126e1ff7a8
commit
3197e3a1fe
@ -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