lib/nexus_cli/errors.rb in nexus_cli-0.1.2 vs lib/nexus_cli/errors.rb in nexus_cli-0.2.0
- old
+ new
@@ -23,20 +23,20 @@
class InvalidSettingsException < NexusCliError
def initialize(key)
@missing_setting = key
end
-
+
def message
- "The .nexus_cli file is missing the value: #{@missing_setting}"
+ "The .nexus_cli file or your overrides are missing the value: #{@missing_setting}"
end
status_code(102)
end
class MissingSettingsFileException < NexusCliError
def message
- "The .nexus_cli file is missing or corrupt."
+ "The .nexus_cli file is missing or corrupt. You can either fix the .nexus_cli file or pass the --overrides hash."
end
status_code(103)
end
class NonSecureConnectionException < NexusCliError
@@ -46,11 +46,11 @@
status_code(104)
end
class CouldNotConnectToNexusException < NexusCliError
def message
- "Could not connect to Nexus. Please ensure the url in .nexus_cli is reachable."
+ "Could not connect to Nexus. Please ensure the url you are using is reachable."
end
status_code(105)
end
class PermissionsException < NexusCliError
@@ -63,10 +63,17 @@
class BadUploadRequestException < NexusCliError
def message
%{Your request was denied by the Nexus server due to a bad request and your artifact has not been uploaded.
This could mean several things:
Your .nexus_cli['repository'] is invalid.
- The artifact with this identifier alread exists inside the repository and that repository does not allow multiple deployments.}
+ The artifact with this identifier already exists inside the repository and that repository does not allow multiple deployments.}
end
status_code(107)
+ end
+
+ class NotNexusProException < NexusCliError
+ def message
+ "You cannot use this feature unless you are using Nexus Professional."
+ end
+ status_code(108)
end
end
\ No newline at end of file