fastlane/lib/fastlane/lane_manager.rb in fastlane-2.36.0.beta.20170525010052 vs fastlane/lib/fastlane/lane_manager.rb in fastlane-2.36.0.beta.20170526010038
- old
+ new
@@ -231,13 +231,18 @@
# Print a nice table unless in FastlaneCore::Globals.verbose? mode
rows = Actions.lane_context.collect do |key, content|
[key, content.to_s]
end
- require 'terminal-table'
- puts Terminal::Table.new({
- title: "Lane Context".yellow,
- rows: FastlaneCore::PrintTable.transform_output(rows)
- })
+ begin
+ require 'terminal-table'
+ puts Terminal::Table.new({
+ title: "Lane Context".yellow,
+ rows: FastlaneCore::PrintTable.transform_output(rows)
+ })
+ rescue
+ os = Helper.linux? ? 'linux' : 'mac'
+ UI.crash!("Something went wrong trying to print the lane context on #{os}")
+ end
end
end
end