fix: capture ProcessException when hook generation fails due to dart pub get
#1242
Labels
bug
Something isn't working
dart pub get
#1242
Description
Running hooks using the Mason API throws a
ProcessException
if Dart executable is not installed.Steps To Reproduce
Expected Behavior
I would expect the error to be captured, it is currently not being captured.
I would expect a better error message that outlined the issue comes from Mason itself (since it is running the
dart pub get
internally) with a verbose description on how to resolve.Additional Context
dart pub get
is coming from Mason, see thatpreGen
calls_runHook
, that calls_installDependencies
that calls_dartPubGet
that callsdart pub get
.The text was updated successfully, but these errors were encountered: