1
0
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:
Lauri Nevala 2020-11-18 12:33:53 +02:00 committed by GitHub
parent 126e1ff7a8
commit 3197e3a1fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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; return proxy;