probot / adapter-github-actions

:electric_plug: An adapter that takes a Probot app and makes it compatible with GitHub Actions
ISC License
86 stars 19 forks source link

How does the error handling work? #6

Closed ianwalter closed 4 years ago

ianwalter commented 4 years ago

I see that errors from probot.receive are being caught here: https://github.com/probot/actions-adapter/blob/master/index.js#L23-L24 But does probot also log the error? If not, shouldn't the error be logged so that you can see the stack trace, for example? Or maybe it can be refactored to use async/await and just throw the error like in this example? https://github.com/actions/toolkit/blob/5feb835dff800f53c9f6d8989f0b503262aade87/docs/github-package.md#action-logic

swinton commented 4 years ago

Thanks, good point.

The easiest change here is to modify the adapter to throw. Working on it in #7.