Refining error handling in http post (#13805)

Related to #13701

# Description
Refining some of the error handling related to http post command
This commit is contained in:
xonas
2024-09-07 18:57:34 -03:00
committed by GitHub
parent 3d008e2c4e
commit 3e074bc447
2 changed files with 20 additions and 21 deletions

View File

@ -682,15 +682,6 @@ pub enum ShellError {
span: Span,
},
/// An unsupported body input was used for the respective application body type in 'http' command
///
/// ## Resolution
///
/// This error is fairly generic. Refer to the specific error message for further details.
#[error("Unsupported body for current content type")]
#[diagnostic(code(nu::shell::unsupported_body), help("{msg}"))]
UnsupportedHttpBody { msg: String },
/// An operation was attempted with an input unsupported for some reason.
///
/// ## Resolution