Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: throw DtsError with errors only #221

Merged
merged 1 commit into from
Sep 6, 2023
Merged

fix: throw DtsError with errors only #221

merged 1 commit into from
Sep 6, 2023

Conversation

bjoerge
Copy link
Member

@bjoerge bjoerge commented Sep 4, 2023

Currently, if doExtract fails it throws an error including every message received during build, including warnings that are ignored by the current loglevel/package config. Combined with another issue that does't render error messages properly (not exactly sure where this happens, didn't dig into it), but rather console.logs the array of messages, the actual errors gets obscured by other messages (info, warnings, etc.) which in turn makes it hard to track down exactly what failed. This fixes this particular issue by making sure only errors are attached to the thrown exception.

Verified

This commit was signed with the committer’s verified signature.
bjoerge Bjørge Næss
Currently, if doExtract fails it throws an error including every message received during build, including warnings that are ignored by the current loglevel/package config. Combined with another issue that does't render error messages properly (not exactly sure where this happens, didn't dig into it), but rather console.logs the array of messages, the actual errors gets obscured by other messages (info, warnings, etc.) which in turn makes it hard to track down exactly what failed. This fixes this particular issue by making sure only _errors_ are attached to the thrown exception.
@bjoerge bjoerge requested a review from a team as a code owner September 4, 2023 16:48
Copy link
Member

@stipsan stipsan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sweet 👍

@bjoerge bjoerge merged commit 983cf10 into main Sep 6, 2023
@bjoerge bjoerge deleted the fix/filter-errors branch September 6, 2023 09:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants