lib/calabash-cucumber/wait_helpers.rb in calabash-cucumber-0.9.86 vs lib/calabash-cucumber/wait_helpers.rb in calabash-cucumber-0.9.87
- old
+ new
@@ -102,9 +102,12 @@
wait_for_transition(done_queries,check_options,animation_options)
end
def handle_error_with_options(ex, timeout_message, screenshot_on_error)
msg = (timeout_message || ex)
+ if ex
+ msg = "#{msg} (#{ex.caller.join(", ")})"
+ end
if screenshot_on_error
screenshot_and_raise msg
else
raise msg
end