style: Improved error message consistency #14
@ -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
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user