From 97fe4ec8e800ea91d4142dc7e302121f5e7a8fdb Mon Sep 17 00:00:00 2001 From: Alexandre Courbot Date: Wed, 2 Nov 2022 17:59:50 +0900 Subject: [PATCH] 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 Reviewed-by: Daniel Almeida Commit-Queue: Alexandre Courbot --- media/cros-codecs/src/decoders.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/media/cros-codecs/src/decoders.rs b/media/cros-codecs/src/decoders.rs index 2923f0eb91..2b7820ce17 100644 --- a/media/cros-codecs/src/decoders.rs +++ b/media/cros-codecs/src/decoders.rs @@ -29,13 +29,13 @@ pub enum Error { #[derive(Error, Debug)] pub enum StatelessBackendError { - #[error("Not enough resources to proceed with the operation now.")] + #[error("not enough resources to proceed with the operation now")] OutOfResources, - #[error("This resource is not ready.")] + #[error("this resource is not ready")] ResourceNotReady, - #[error("This format is not supported.")] + #[error("this format is not supported")] UnsupportedFormat, - #[error("Negotiation failed")] + #[error("negotiation failed")] NegotiationFailed(anyhow::Error), #[error(transparent)] Other(#[from] anyhow::Error),