Skip to content

Commit 332dd8c

Browse files
committed
chore: add try/catch block
1 parent 8e2f0be commit 332dd8c

File tree

1 file changed

+7
-2
lines changed
  • packages/integration-tests/docker-setup

1 file changed

+7
-2
lines changed

packages/integration-tests/docker-setup/docker.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,15 @@ async function startL1ChainContainer(network: StartedNetwork) {
5454
// since the docker file is doing some copying operations from the host machine so first building the image
5555
const projectRoot = path.resolve(__dirname, '../../../');
5656
const dockerfilePath = path.join(projectRoot, 'docker/l1-chain');
57-
58-
const buildInstance = await GenericContainer.fromDockerfile(
57+
58+
let buildInstance
59+
try {
60+
buildInstance = await GenericContainer.fromDockerfile(
5961
dockerfilePath
6062
).build(IMAGE_NAME);
63+
} catch(error) {
64+
console.log(error);
65+
}
6166

6267
const container: StartedTestContainer = await buildInstance
6368
.withExposedPorts(

0 commit comments

Comments
 (0)