Skip to content
This repository was archived by the owner on Jul 23, 2025. It is now read-only.

Commit 2d02a0e

Browse files
committed
chore: make sure @actions/core error and setFailed are consistenly used everywhere
1 parent f51a9cb commit 2d02a0e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/main.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,10 @@ export function run(
8888
): Promise<void> {
8989
return new Promise(async (resolve, reject) => {
9090
if (platform() === 'win32') {
91-
return reject(new Error('CC Reporter is not supported on Windows!'));
91+
const err = new Error('CC Reporter is not supported on Windows!');
92+
error(err.message);
93+
setFailed('🚨 CodeClimate Reporter will not run on Windows!');
94+
return reject(err);
9295
}
9396

9497
let lastExitCode = 1;

0 commit comments

Comments
 (0)