Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: reject with real errors for GitLab API calls for better debugging
In previous implementation, some GitLab API calls would make a Promise rejection with `undefined` as the reason. And in the [global `unhandledRejection` handler](https://github.com/frantic1048/danger-js/blob/b67d710af4d177d57e7091a742da54a2e9fa37fc/source/commands/utils/sharedDangerfileArgs.ts#L5), it will print a generic "Error: undefined" message. This makes debugging very hard. This commit fixes the issue by filling in the rejection reason with the actual error.
- Loading branch information