You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In several cases, such as Cljs compilation or test running, for example the stack trace might not be very interesting and is on the way of the interesting message. In these cases the tasks should be able to better decide how to display these exceptions.
Currently tasks need to throw the exception so that Boot detects that the task did not finish and that the next tasks should not be run.
I propose following solution:
Tasks send a special exception using ex-info, e.g. with :type :boot-exception or something, with some option keys on what to do, e.g. :boot-display-exception? false and optionally the original exception as cause. The default would be to just print the cause.
Or maybe this logic should be separated to another function, in case the options will in future control other things besides printting the exception. E.g. if the next tasks should run.
The text was updated successfully, but these errors were encountered:
In several cases, such as Cljs compilation or test running, for example the stack trace might not be very interesting and is on the way of the interesting message. In these cases the tasks should be able to better decide how to display these exceptions.
Currently tasks need to throw the exception so that Boot detects that the task did not finish and that the next tasks should not be run.
I propose following solution:
Tasks send a special exception using ex-info, e.g. with
:type :boot-exception
or something, with some option keys on what to do, e.g.:boot-display-exception? false
and optionally the original exception as cause. The default would be to just print the cause.This could be implemented in
boot.util/print-ex
which is called at least bywatch
task: https://github.com/boot-clj/boot/blob/master/boot/pod/src/boot/util.clj#L253.Or maybe this logic should be separated to another function, in case the options will in future control other things besides printting the exception. E.g. if the next tasks should run.
The text was updated successfully, but these errors were encountered: