Skip to content

How do I fail a build from a resolver plugin? #4992

Answered by DeMoorJasper
Aaronius asked this question in General
Discussion options

You must be logged in to vote

Currently that's impossible as the way it works is that a thrown error will result in the next resolver getting a chance to resolve the asset as an error usually means that it can't resolve it.

We might add a flag or something similar to it that we can use like the MODULE_NOT_FOUND in the standard node resolver, so we know what kind of error occurred although not entirely sure what the best approach for this is.

Replies: 4 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by Aaronius
Comment options

You must be logged in to vote
3 replies
@DeMoorJasper
Comment options

@Aaronius
Comment options

@DeMoorJasper
Comment options

Comment options

You must be logged in to vote
1 reply
@DeMoorJasper
Comment options

Comment options

You must be logged in to vote
1 reply
@mischnic
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants