Class: Fastlane::FirebaseTestLab::ErrorHelper
- Inherits:
-
Object
- Object
- Fastlane::FirebaseTestLab::ErrorHelper
- Defined in:
- lib/fastlane/plugin/firebase_test_lab/helper/error_helper.rb
Class Method Summary collapse
Class Method Details
.summarize_google_error(payload) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fastlane/plugin/firebase_test_lab/helper/error_helper.rb', line 6 def self.summarize_google_error(payload) begin response = JSON.parse(payload) rescue JSON::ParserError => ex FastlaneCore::UI.error("Unable to parse error message: #{ex.class}, message: #{ex.message}") return payload end if response["error"] return "#{response['error']['message']}\n#{payload}" end return payload end |