Match fetchData error with TIMEOUT ErrorInfo.

This commit is contained in:
Richard Moore 2022-04-19 19:59:00 -04:00
parent f9943b4185
commit ae8163b1ae

View File

@ -136,7 +136,7 @@ export async function fetchData(connection: string | FetchRequest | ConnectionIn
const remainingTime = getTime() - t0;
if (remainingTime < 0) {
return logger.throwError("timeout", "TIMEOUT", { operation: "request", request });
return logger.throwError("timeout", "TIMEOUT", { operation: "request", reason: "timeout", request });
}
response = await getUrl(request, remainingTime);