Simplify errors

This commit is contained in:
Aram 🍐 2021-08-01 15:10:27 -04:00
parent c935d88496
commit 96fbfeaeab
8 changed files with 109 additions and 135 deletions

View file

@ -148,7 +148,7 @@ impl TcpConnection {
// Parse args by splitting whitespace, minding quotes for args with multiple words
let args = shell_words::split(&raw)
.map_err(|e| NutError::Generic(format!("Parsing server response failed: {}", e)))?;
.map_err(|e| NutError::generic(format!("Parsing server response failed: {}", e)))?;
Ok(args)
}