fastlane/lib/fastlane/lane.rb in fastlane-2.81.0.beta.20180212010003 vs fastlane/lib/fastlane/lane.rb in fastlane-2.81.0.beta.20180213010002
- old
+ new
@@ -45,12 +45,14 @@
UI.error("Lane name '#{name}' is invalid! Invalid names are #{self.black_list.join(', ')}.")
UI.user_error!("Lane name '#{name}' is invalid")
end
if self.gray_list.include?(name.to_sym)
+ UI.error("------------------------------------------------")
UI.error("Lane name '#{name}' should not be used because it is the name of a fastlane tool")
UI.error("It is recommended to not use '#{name}' as the name of your lane")
+ UI.error("------------------------------------------------")
# We still allow it, because we're nice
# Otherwise we might break existing setups
return
end
@@ -84,10 +86,12 @@
end
def ensure_name_not_conflicts(name)
# First, check if there is a predefined method in the actions folder
return unless Actions.action_class_ref(name)
- UI.important("Name of the lane '#{name}' is already taken by the action named '#{name}'")
+ UI.error("------------------------------------------------")
+ UI.error("Name of the lane '#{name}' is already taken by the action named '#{name}'")
+ UI.error("------------------------------------------------")
end
end
end
end