File tree Expand file tree Collapse file tree 1 file changed +17
-9
lines changed Expand file tree Collapse file tree 1 file changed +17
-9
lines changed Original file line number Diff line number Diff line change @@ -48,11 +48,13 @@ const actionHelper = {
48
48
}
49
49
}
50
50
}
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
+ }
56
58
57
59
return plugins ;
58
60
} ,
@@ -205,7 +207,11 @@ const actionHelper = {
205
207
try {
206
208
res = fs . readFileSync ( reportName , { encoding : "base64" } ) ;
207
209
} 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
+ ) ;
209
215
}
210
216
return res ;
211
217
} ,
@@ -287,9 +293,11 @@ const actionHelper = {
287
293
} ) ;
288
294
}
289
295
} 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
+ ) ;
293
301
}
294
302
return previousReport ;
295
303
} ,
You can’t perform that action at this time.
0 commit comments