lib/xcpretty/formatters/formatter.rb in xcpretty-bb-0.1.12.bb2 vs lib/xcpretty/formatters/formatter.rb in xcpretty-bb-0.1.12.bb3

- old
+ new

@@ -33,11 +33,11 @@ def format_failing_test(suite, test, time, file_path); EMPTY; end def format_process_pch(file); EMPTY; end def format_process_pch_command(file_path); EMPTY; end def format_phase_success(phase_name); EMPTY; end def format_phase_script_execution(phase_name); EMPTY; end - def format_phase_script_error(error, text); EMPTY; end + def format_phase_script_error(error, output) EMPTY; end def format_process_info_plist(file_name, file_path); EMPTY; end def format_codesign(file); EMPTY; end def format_preprocess(file); EMPTY; end def format_pbxcp(file); EMPTY; end def format_shell_command(command, arguments); EMPTY; end @@ -113,11 +113,12 @@ def format_error(message) "\n#{red(error_symbol + " " + message)}\n\n" end - def format_phase_script_error(error, text) - "\n#{red(error_symbol + " ")}#{error}: #{red(text)}\n\n" + def format_phase_script_error(error, output) + indentedOutput = output.join(" "); + "\n#{red(error_symbol + " ")}#{error}: #{red(indentedOutput)}\n\n" end def format_compile_error(file, file_path, reason, line, cursor) "\n#{red(error_symbol + " ")}#{file_path}: #{red(reason)}\n\n" \ "#{line}\n#{cyan(cursor)}\n\n"