Skip to content

Commit f0d43f7

Browse files
committed
chore: Exit with error code when script fails
1 parent f1839d7 commit f0d43f7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

scripts/set-callback-gas.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,7 @@ import { IexecInterfaceToken__factory } from '../typechain';
2222
await iexecPoCo.setCallbackGas(requestedCallbackGas).then((tx) => tx.wait());
2323
const callbackGasAfter = (await iexecPoCo.callbackgas()).toLocaleString();
2424
console.log(`Changed callback-gas from ${callbackGasBefore} to ${callbackGasAfter}`);
25-
})().catch((error) => console.log(error));
25+
})().catch((error) => {
26+
console.log(error);
27+
process.exitCode = 1;
28+
});

0 commit comments

Comments
 (0)