Skip to content

Commit

Permalink
adds error handling while obtaining upload url
Browse files Browse the repository at this point in the history
  • Loading branch information
f1-shreejan committed May 18, 2024
1 parent d9233bb commit 697d7f6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def self.upload_app(token, client_id, app_id, apk_path, is_aab)

result_json = JSON.parse(response.body)

if result_json['urlInfo']['url'].nil?
if result_json.nil? || result_json['urlInfo'].nil? || result_json['urlInfo']['url'].nil?
UI.message('Cannot obtain upload url')
UI.user_error!(response.body)

Expand Down
2 changes: 1 addition & 1 deletion lib/fastlane/plugin/huawei_appgallery_connect/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module Fastlane
module HuaweiAppgalleryConnect
VERSION = "1.0.29"
VERSION = "1.0.30"
end
end

0 comments on commit 697d7f6

Please sign in to comment.