call info encoder

This commit is contained in:
Fernando Herrera
2021-10-26 20:50:39 +01:00
parent 36a834c1e3
commit af02c8f6ea
8 changed files with 700 additions and 207 deletions

View File

@ -169,6 +169,14 @@ pub enum ShellError {
NoFileToBeMoved(),
#[error("No file to be copied")]
NoFileToBeCopied(),
#[error("Unable to serialize message")]
#[diagnostic(code(nu::shell::EncodingError), url(docsrs))]
EncodingError(String),
#[error("Unable to read message")]
#[diagnostic(code(nu::shell::DecodingError), url(docsrs))]
DecodingError(String),
}
impl From<std::io::Error> for ShellError {