refactor: user_error fn
This commit is contained in:
parent
27917a1f81
commit
a9557fbc51
@ -7,7 +7,7 @@ module Fastlane
|
||||
def self.run(params)
|
||||
# Check parameters
|
||||
unless Helper::AndroidCdHelper.is_set(params[:beta_type])
|
||||
UI.user_error("❌ Parameters beta_type cannot be null")
|
||||
UI.user_error!("❌ Parameters beta_type cannot be null")
|
||||
puts("Error on beta type parameter")
|
||||
end
|
||||
|
||||
@ -30,7 +30,7 @@ module Fastlane
|
||||
properties: {
|
||||
"android.injected.version.code" => build_number
|
||||
}
|
||||
))
|
||||
)
|
||||
|
||||
# Upload the Android App Bundle to the Play Store
|
||||
other_action.upload_to_play_store(
|
||||
|
@ -7,12 +7,12 @@ module Fastlane
|
||||
def self.run(params)
|
||||
# Check from parameters
|
||||
unless Helper::AndroidCdHelper.is_set(params[:from])
|
||||
UI.user_error("❌ Parameters from cannot be null")
|
||||
UI.user_error!("❌ Parameters from cannot be null")
|
||||
end
|
||||
|
||||
# Check destination parameters
|
||||
unless Helper::AndroidCdHelper.is_set(params[:destination])
|
||||
UI.user_error("❌ Parameters destination cannot be null")
|
||||
UI.user_error!("❌ Parameters destination cannot be null")
|
||||
end
|
||||
|
||||
UI.message("⌛️ Promoting to Google Play Store from #{params[:from]} to #{params[:destination]}..")
|
||||
|
@ -17,7 +17,7 @@ module Fastlane
|
||||
# Move the extracted files to the current directory
|
||||
`jar xvf #{android_directory} && mv #{android_directory}/android_keys/* #{android_directory}`
|
||||
else
|
||||
UI.user_error("❌ Erreur lors de la décompression du fichier GPG")
|
||||
UI.user_error!("❌ Erreur lors de la décompression du fichier GPG")
|
||||
end
|
||||
end
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user