Skip to content

Commit

Permalink
throw build failure all the way to main.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
dzsquared committed Aug 9, 2024
1 parent 4e46c4a commit fdfad6b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/AzureSqlAction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ export default class AzureSqlAction {
if (!inputs.noJobSummary) {
this._projectBuildJobSummary(buildOutput);
}
core.setFailed(`Failed to build SQL project. ${error.message}`);
throw new Error(`Failed to build project: ${error}`);
}

const dacpacPath = path.join(outputDir, projectName + Constants.dacpacExtension);
Expand Down

0 comments on commit fdfad6b

Please sign in to comment.