Skip to content

Commit

Permalink
Make clear #on_failure doesn't affect the operation's return value
Browse files Browse the repository at this point in the history
  • Loading branch information
waiting-for-dev committed Oct 31, 2024
1 parent 0428e87 commit 64b1be4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docsite/source/error-handling.html.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ You'll usually handle the failure from the call site, where you can pattern matc

### Global error handling

You can define a global failure handler by implementing an `#on_failure` method in your operation class:
You can define a global failure handler by implementing an `#on_failure` method in your operation class. This method is only called to perform desired side effects and it won't affect the operation's return value.

```ruby
class CreateUser < Dry::Operation
Expand Down

0 comments on commit 64b1be4

Please sign in to comment.