Webpack returns errors in two different ways - don't understand this API design #18042
robert-westenberger
started this conversation in
General
Replies: 1 comment 1 reply
-
Because you can have two different types of errors:
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm looking at this piece of documentation
https://webpack.js.org/api/node/#error-handling
i don't understand why errors are being exposed to the developer in two different ways. Am i alone in thinking this is strange? Is there some historical reason why there are two places a developer needs to check for errors?
Beta Was this translation helpful? Give feedback.
All reactions