From d69c5047ba03ffc363dd7e9bf0e450a8c6907cee Mon Sep 17 00:00:00 2001 From: Tim Riley Date: Wed, 30 Oct 2024 19:09:22 +1100 Subject: [PATCH] Make on_failure private --- docsite/source/error-handling.html.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docsite/source/error-handling.html.md b/docsite/source/error-handling.html.md index 46fb9f1..9325ef4 100644 --- a/docsite/source/error-handling.html.md +++ b/docsite/source/error-handling.html.md @@ -25,6 +25,8 @@ class CreateUser < Dry::Operation user end + private + def on_failure(failure) # Log or handle the failure globally logger.error("Operation failed: #{failure}") @@ -47,6 +49,8 @@ class CreateUser < Dry::Operation user end + private + def on_failure(failure, step_name) case step_name when :validate