helm-nexus-push icon indicating copy to clipboard operation
helm-nexus-push copied to clipboard

Plugin doesn't fail on HTTP error 4xx

Open RESTful-web-dev opened this issue 3 years ago • 0 comments

  • What are you trying to do? The plugin doesn't fail on HTTP error 4xx

  • What feature or behavior is this required for? The curl command should actually fail on HTTP error 4xx and make the plugin failing.

  • How could we solve this issue? (Not knowing is okay!) Some option needs to be added to the curl command:

    • --fail => (HTTP) Fail silently (no output at all) on server errors. This is mostly done to better enable scripts etc to better deal with failed attempts. In normal cases when a HTTP server fails to deliver a document, it returns an HTML document stating so (which often also describes why and more). This flag will prevent curl from outputting that and return error 22.
    • --show-error => When used with -s it makes curl show an error message if it fails.

RESTful-web-dev avatar Aug 09 '22 16:08 RESTful-web-dev