Skip to content

Commit

Permalink
Fixing linting and formatting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Suyash878 committed Dec 4, 2024
1 parent 9b96d01 commit 3c10f42
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -482,8 +482,10 @@ async function runDockerComposeWithLogs(): Promise<void> {
: reject(new Error("Docker daemon not running")),
);
});
} catch (error:any) {
throw new Error(`Docker daemon is not running. Please start Docker and try again. Details: ${error.message}`);
} catch (error: any) {

Check warning on line 485 in setup.ts

View workflow job for this annotation

GitHub Actions / Check for linting, formatting, and type errors

Unexpected any. Specify a different type
throw new Error(
`Docker daemon is not running. Please start Docker and try again. Details: ${error.message}`,
);
}

return new Promise((resolve, reject) => {
Expand Down Expand Up @@ -1262,7 +1264,10 @@ async function main(): Promise<void> {
isConnected = true;
console.log("MongoDB is ready!");
} catch (err) {
console.log("Waiting for MongoDB to be ready... Retrying in 1 second");
console.log(
"Waiting for MongoDB to be ready... Retrying in 1 second, Details:" +
err,
);
await new Promise((resolve) => setTimeout(resolve, 1000));
}
}
Expand Down

0 comments on commit 3c10f42

Please sign in to comment.