Skip to content

Commit

Permalink
Improve error reporting for failing subcommands
Browse files Browse the repository at this point in the history
  • Loading branch information
Felix Schlitter committed Oct 22, 2018
1 parent 36efafb commit ba2df0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/Utils.purs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ runProc cmd args = do
ChildProcess.Exit.Normally 0 ->
launchAff_ $ AVar.tryPut unit v
ChildProcess.Exit.Normally n -> do
launchAff_ $ AVar.kill (error $ show n) v
launchAff_ $ AVar.kill (error $ "Subcommand exited with: " <> show n) v
ChildProcess.Exit.BySignal signal ->
launchAff_ $ AVar.kill (error $ "Received Signal: " <> show signal) v
AVar.take v

0 comments on commit ba2df0a

Please sign in to comment.