fixes issue with writeErrorResponse
This commit is contained in:
parent
d29c304d5a
commit
125bbe6441
|
@ -21,7 +21,7 @@ export function writeErrorResponse(
|
|||
statusCode: number,
|
||||
errorPayload: Record<string, any>
|
||||
) {
|
||||
const errorSource = errorPayload.error?.type.startsWith("proxy")
|
||||
const errorSource = errorPayload.error?.type?.startsWith("proxy")
|
||||
? "proxy"
|
||||
: "upstream";
|
||||
|
||||
|
|
Loading…
Reference in New Issue