fastlane/lib/fastlane/lane_manager.rb in fastlane-2.95.0.beta.20180502050125 vs fastlane/lib/fastlane/lane_manager.rb in fastlane-2.95.0.beta.20180503050136
- old
+ new
@@ -55,15 +55,20 @@
started = Time.now
e = nil
begin
ff.runner.execute(lane, platform, parameters)
+ rescue NameError => ex
+ print_lane_context
+ print_error_line(ex)
+ e = ex
rescue Exception => ex # rubocop:disable Lint/RescueException
# We also catch Exception, since the implemented action might send a SystemExit signal
# (or similar). We still want to catch that, since we want properly finish running fastlane
# Tested with `xcake`, which throws a `Xcake::Informative` object
print_lane_context
+ print_error_line(ex)
UI.error(ex.to_s) if ex.kind_of?(StandardError) # we don't want to print things like 'system exit'
e = ex
end
# After running the lanes, since skip_docs might be somewhere in-between