fixes issue with writeErrorResponse

This commit is contained in:
nai-degen 2023-08-04 13:49:11 -05:00
parent d29c304d5a
commit 125bbe6441
1 changed files with 1 additions and 1 deletions

View File

@ -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";