mu: improve mu-error

Add specific error-code for SchemaMismatch

Combine find/cfind no-matches
This commit is contained in:
Dirk-Jan C. Binnema
2023-01-29 15:38:40 +02:00
parent 4449ac9d29
commit 3ec960c609
2 changed files with 3 additions and 4 deletions

View File

@ -315,7 +315,7 @@ Mu::mu_cmd_cfind(const Mu::Store& store, const Mu::Options& opts)
});
if (num == 0)
return Err(Error::Code::ContactNotFound, "no matching contacts found");
return Err(Error::Code::NoMatches, "no matching contacts found");
output(ItemType::Footer, Nothing, opts);
return Ok();