factor 0.5.08 → 0.5.09
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/factor/version.rb +1 -1
- data/lib/runtime.rb +7 -1
- metadata +1 -1
data/lib/factor/version.rb
CHANGED
data/lib/runtime.rb
CHANGED
@@ -161,7 +161,13 @@ module Factor
|
|
161
161
|
end
|
162
162
|
|
163
163
|
def error_handle_call(listener_response, &block)
|
164
|
-
|
164
|
+
payload = if listener_response['payload'].is_a?(Hash)
|
165
|
+
OpenStruct.new(listener_response['payload'])
|
166
|
+
else
|
167
|
+
listener_response['payload']
|
168
|
+
end
|
169
|
+
block.call(payload) if block
|
170
|
+
|
165
171
|
rescue => ex
|
166
172
|
error "Error in workflow definition: #{ex.message}"
|
167
173
|
ex.backtrace.each do |line|
|