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

Function logAndReturnError

packages/airnode-deployer/src/utils/infrastructure.ts:34–37  ·  view source on GitHub ↗
(message: string)

Source from the content-addressed store, hash-verified

32export const isCloudFunction = () => process.env.LAMBDA_TASK_ROOT || process.env.FUNCTION_TARGET;
33
34export const logAndReturnError = (message: string) => {
35 logger.fail(message);
36 return new Error(message);
37};
38
39export class MultiMessageError extends Error {
40 constructor(public messages: string[]) {

Callers 4

runCommandFunction · 0.90
parseSecretsFileFunction · 0.90
parseReceiptFileFunction · 0.90
deployFunction · 0.90

Calls 1

failMethod · 0.80

Tested by

no test coverage detected