Skip to content

Commit 60106a5

Browse files
mokagioAliSoftware
andauthored
Show user unhandled gp_downloadmetadata errors and ask to continue
Co-authored-by: Olivier Halligon <olivier.halligon@automattic.com>
1 parent 0af9cfa commit 60106a5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/fastlane/plugin/wpmreleasetoolkit/helper/metadata_download_helper.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,8 @@ def handle_glotpress_download(response:, locale:, is_source:)
119119
UI.error("Abandoning `#{locale}` download as requested.")
120120
end
121121
else
122-
UI.error("Received unexpected #{response.code} from request to URI #{response.uri}.")
122+
message = "Received unexpected #{response.code} from request to URI #{response.uri}."
123+
UI.abort_with_message!(message) unless UI.confirm("#{message} Continue anyway?")
123124
end
124125
end
125126
end

0 commit comments

Comments
 (0)