media: cros-codecs: harmonize error descriptions

Error descriptions should have no leading capital and do not end with a
dot.

BUG=b:214478588
TEST=cargo test --features vaapi -p cros-codecs

Change-Id: I807e4874c862bc8e32dc4a394b1e5e46df60c8d0
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4005489
Reviewed-by: Keiichi Watanabe <keiichiw@chromium.org>
Reviewed-by: Daniel Almeida <daniel.almeida@collabora.corp-partner.google.com>
Commit-Queue: Alexandre Courbot <acourbot@chromium.org>
This commit is contained in:
Alexandre Courbot 2022-11-02 17:59:50 +09:00 committed by crosvm LUCI
parent 13f21379ac
commit 97fe4ec8e8

View file

@ -29,13 +29,13 @@ pub enum Error {
#[derive(Error, Debug)] #[derive(Error, Debug)]
pub enum StatelessBackendError { pub enum StatelessBackendError {
#[error("Not enough resources to proceed with the operation now.")] #[error("not enough resources to proceed with the operation now")]
OutOfResources, OutOfResources,
#[error("This resource is not ready.")] #[error("this resource is not ready")]
ResourceNotReady, ResourceNotReady,
#[error("This format is not supported.")] #[error("this format is not supported")]
UnsupportedFormat, UnsupportedFormat,
#[error("Negotiation failed")] #[error("negotiation failed")]
NegotiationFailed(anyhow::Error), NegotiationFailed(anyhow::Error),
#[error(transparent)] #[error(transparent)]
Other(#[from] anyhow::Error), Other(#[from] anyhow::Error),