lib/nexus_cli/errors.rb in nexus_cli-0.8.4 vs lib/nexus_cli/errors.rb in nexus_cli-0.9.0
- old
+ new
@@ -242,7 +242,18 @@
def message
"You are attempting to remove a repository that isn't a part of the group."
end
status_code(127)
end
+
+ class NexusHTTP404 < NexusCliError
+ def initialize(body)
+ @server_response = body
+ end
+ def message
+ %{Your command failed and the server returned an error code. The output of the response was:
+#{@server_response}}
+ end
+ status_code(128)
+ end
end
\ No newline at end of file