Skip to content

Commit da9702d

Browse files
Updated to console.error
1 parent d67323e commit da9702d

File tree

1 file changed

+17
-9
lines changed

1 file changed

+17
-9
lines changed

src/action-helper.ts

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,13 @@ const actionHelper = {
4848
}
4949
}
5050
}
51-
} catch (err) {
52-
console.log(`Error when reading the rules file: ${tsvFile} err: ${(
53-
err as Error
54-
).toString()}`);
55-
}
51+
catch (err) {
52+
console.error(
53+
`Error when reading the rules file: ${tsvFile} err: ${(
54+
err as Error
55+
).toString()}`,
56+
);
57+
}
5658

5759
return plugins;
5860
},
@@ -205,7 +207,11 @@ const actionHelper = {
205207
try {
206208
res = fs.readFileSync(reportName, { encoding: "base64" });
207209
} catch (err) {
208-
console.log("error while reading the markdown file!");
210+
console.error(
211+
`Error occurred while reading the markdown file! err: ${(
212+
err as Error
213+
).toString()}`,
214+
);
209215
}
210216
return res;
211217
},
@@ -287,9 +293,11 @@ const actionHelper = {
287293
});
288294
}
289295
} catch (err) {
290-
console.log(`Error occurred while downloading the artifacts! err: ${(
291-
err as Error
292-
).toString()}`);
296+
console.error(
297+
`Error occurred while downloading the artifacts! err: ${(
298+
err as Error
299+
).toString()}`,
300+
);
293301
}
294302
return previousReport;
295303
},

0 commit comments

Comments
 (0)