style: Improved error message consistency #14

Merged
malo merged 1 commits from main into feat/prepare-android-pipeline-for-rc 2023-05-16 15:21:25 +00:00
2 changed files with 4 additions and 3 deletions
Showing only changes of commit 83216cbbbb - Show all commits

View File

@ -5,9 +5,10 @@ module Fastlane
module Actions module Actions
class BuildAndDeployAction < Action class BuildAndDeployAction < Action
def self.run(params) def self.run(params)
# Check parameters # Check parameters
unless Helper::IosCdHelper.is_set(params[:beta_type]) unless Helper::IosCdHelper.is_set(params[:beta_type])
UI.error("❌ Parameters beta_type cannot be null") UI.user_error("❌ Parameters beta_type cannot be null")
puts("Error on beta type parameter") puts("Error on beta type parameter")
end end

View File

@ -26,7 +26,7 @@ module Fastlane
# Move the extracted files to the current directory # Move the extracted files to the current directory
`jar xvf #{ios_directory}/ios_keys.zip && mv #{ios_directory}/ios_keys/* #{ios_directory}` `jar xvf #{ios_directory}/ios_keys.zip && mv #{ios_directory}/ios_keys/* #{ios_directory}`
else else
puts("Erreur lors de la décompression du fichier GPG") UI.user_error("Erreur lors de la décompression du fichier GPG")
end end
end end
@ -38,7 +38,7 @@ module Fastlane
JSON.parse(file) JSON.parse(file)
else else
UI.error("❌ Ios credentials doesn't exist") UI.user_error("❌ Ios credentials doesn't exist")
puts("json file doesn't exist") puts("json file doesn't exist")
end end
end end