commanded/commanded-ecto-projections

Remove try / rescue from projection function

slashdotdash opened this issue · 0 comments

An Ecto projector is a Commanded event handler which uses a try / rescue around the handler's handle/2 function. This means that it might not be necessary to use try / rescue blocks within the Ecto projector macro. Currently these swallow the stacktrace and make it difficult to debug exceptions. Whereas the Commanded implementation logs the error and returns the stack trace.