Skip to content

Commit

Permalink
fix: log error
Browse files Browse the repository at this point in the history
  • Loading branch information
Ebonsignori committed Aug 1, 2022
1 parent 27f6b91 commit ebab0d1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ function run(getCore, getOctokit, getSlack) {
}
catch (error) {
core.warning(`Unable to fetch URL for notification\nid :${notification.id}\nsubject:${JSON.stringify(notification.subject, null, 2)}`);
core.info(error.message);
}
return Object.assign(Object.assign({}, notification), { notification_html_url });
})));
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,12 +168,13 @@ async function run(
)}\subject.url request: ${JSON.stringify(notificationSubject.data, null, 2)}`
);
}
} catch (error) {
} catch (error: any) {
core.warning(
`Unable to fetch URL for notification\nid :${
notification.id
}\nsubject:${JSON.stringify(notification.subject, null, 2)}`
);
core.info(error.message);
}
return {
...notification,
Expand Down

0 comments on commit ebab0d1

Please sign in to comment.