Skip to content

Commit b316600

Browse files
authored
Merge pull request #11 from svaenn/feature/logBicepWarnings
Feature/log bicep warnings
2 parents 5d15337 + 6327828 commit b316600

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/run/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,8 @@ export function executeBicepBuild(files: string[], bicepTool: string, additional
133133

134134
if (bicepProcess.code !== 0) {
135135
throw new Error(`Failed to execute script. Related file: ${file}`);
136+
} else if (bicepProcess.stderr.length > 0) {
137+
taskLib.setResult(taskLib.TaskResult.SucceededWithIssues, bicepProcess.stderr);
136138
} else {
137139
taskLib.debug(`- Built '${file}' successfully`);
138140
}

0 commit comments

Comments
 (0)