Skip to content

Commit d1b4649

Browse files
amarnatvCopilot
andauthored
Update src/defender-client.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent acff1b1 commit d1b4649

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/defender-client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ async function runDefenderCli(inputArgs: string[], successfulExitCodes: number[]
198198
}
199199

200200
if (!success) {
201-
throw `Defender CLI exited with an error exit code: ${exitCode}`;
201+
throw new Error(`Defender CLI exited with an error exit code: ${exitCode}`);
202202
}
203203
} catch (error) {
204204
tl.setResult(tl.TaskResult.Failed, error);

0 commit comments

Comments
 (0)