Closed searls closed 8 years ago
Add a custom on-error hook when the new code path fails in production, allowing folks to do something when the code path raises an (unexpected, see: #24 ) error.
on_new_error: -> (name, args, error) { PhonesHome.new.phone(name, args) }
Its return value doesn't have any kind of impact on what happens next, Suture will propagate the error just as it would have
Add a custom on-error hook when the new code path fails in production, allowing folks to do something when the code path raises an (unexpected, see: #24 ) error.
Its return value doesn't have any kind of impact on what happens next, Suture will propagate the error just as it would have