Skip to content

Commit

Permalink
add exit codes
Browse files Browse the repository at this point in the history
  • Loading branch information
jsbroks committed Sep 26, 2024
1 parent ce382a9 commit 705f366
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion integrations/terraform-cloud-scanner/src/scanner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export async function scan() {
logger.error(
"Provider ID is not available. Aborting target registration.",
);
return;
process.exit(1);
}

const workspaces: Workspace[] = await listWorkspaces();
Expand Down Expand Up @@ -88,6 +88,7 @@ export async function scan() {
logger.info("Successfully registered targets");
} catch (error) {
logger.error("An error occurred during the scan process:", error);
process.exit(1);
}
}

Expand Down

0 comments on commit 705f366

Please sign in to comment.