Skip to content

Commit f523364

Browse files
committed
Added error logging before exiting
1 parent 2c605f8 commit f523364

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

dist/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1747,6 +1747,7 @@ function action() {
17471747
yield ActionUtils.commitFile();
17481748
}
17491749
catch (err) {
1750+
core.error(err.message);
17501751
core.setFailed(err.message);
17511752
}
17521753
});

src/action.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ export async function action() {
110110
fs.writeFileSync(README_PATH, finalLines.join('\n'), 'utf-8');
111111
await ActionUtils.commitFile();
112112
} catch (err) {
113+
core.error(err.message);
113114
core.setFailed(err.message);
114115
}
115116
}

0 commit comments

Comments
 (0)