Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fastlane] Extend socket failure payload #16632

Merged
merged 8 commits into from
Jul 6, 2020
8 changes: 7 additions & 1 deletion fastlane/lib/fastlane/server/socket_server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,10 @@ def execute_action_command(command: nil)
exception_array << "#{e.class}:"
exception_array << e.backtrace

ec = e.class

em = e.message

while e.respond_to?("cause") && (e = e.cause)
exception_array << "cause: #{e.class}"
exception_array << e.backtrace
Expand All @@ -223,7 +227,9 @@ def execute_action_command(command: nil)
payload = {
payload: {
status: "failure",
failure_information: exception_array.flatten
failure_information: exception_array.flatten,
failure_class: ec,
failure_message: em
}
}
return JSON.generate(payload)
Expand Down