toolx 0.2.5 → 0.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/toolx/core/operation/flow.rb +4 -2
- data/lib/toolx/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 587f05106c62e4ce2a6603318d333153c91f6b4acd1a0e3877c8a808e4c412a5
|
4
|
+
data.tar.gz: aa22cae4dd9bcd8539f7f86a6a9bd5230176c0d4c9484a90c9bb5fd5eedd6614
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6ff69d9b7b6869a9a044b1c7b14292b9c20c5d0077155eb6528d55dc65424a576b7f2b6c931ae7b5dd2abbb01eaf5ba8065fc99f18589fc332dbd45be7158ed0
|
7
|
+
data.tar.gz: a9c14127607e2007fa61af204329666bed15b85e9db44f7e7a4f752fd0154b4e9f08d5d1ee107e5b2008a913d63756ac5cb88333558a3f57cc9abfd1ce7748d5
|
@@ -230,13 +230,15 @@ module Toolx::Core::Operation::Flow
|
|
230
230
|
begin
|
231
231
|
execute_action_kind(:success)
|
232
232
|
rescue => e
|
233
|
-
|
233
|
+
action_name = actions[:fail].is_a?(Symbol) ? actions[:fail] : 'block'
|
234
|
+
raise OnSuccessException, "Error in operation success action (#{action_name}): #{e.message}", e.backtrace
|
234
235
|
end
|
235
236
|
else
|
236
237
|
begin
|
237
238
|
execute_action_kind(:fail)
|
238
239
|
rescue => e
|
239
|
-
|
240
|
+
action_name = actions[:fail].is_a?(Symbol) ? actions[:fail] : 'block'
|
241
|
+
raise OnFailException.new("Error in operation fail action (#{action_name}): #{e.message}", e, exception)
|
240
242
|
end
|
241
243
|
end
|
242
244
|
self
|
data/lib/toolx/version.rb
CHANGED