MCPcopy Create free account
hub / github.com/api3dao/airnode / isPerformApiCallFailure

Function isPerformApiCallFailure

packages/airnode-node/src/api/index.ts:171–175  ·  view source on GitHub ↗
(
  value: ApiCallErrorResponse | PerformApiCallSuccess
)

Source from the content-addressed store, hash-verified

169}
170
171export function isPerformApiCallFailure(
172 value: ApiCallErrorResponse | PerformApiCallSuccess
173): value is ApiCallErrorResponse {
174 return !!(value as ApiCallErrorResponse).errorMessage;
175}
176
177export function errorMsgFromAxiosError(e: AxiosError): string {
178 if (e.response) {

Callers 1

callApiFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected