diff --git a/app/buck2_validation/src/cached_validation_result.rs b/app/buck2_validation/src/cached_validation_result.rs index ed2bed4cafe6..9a87e2a96d85 100644 --- a/app/buck2_validation/src/cached_validation_result.rs +++ b/app/buck2_validation/src/cached_validation_result.rs @@ -30,7 +30,7 @@ pub(crate) enum CachedValidationResultData { #[derive(buck2_error::Error, Debug, PartialEq, Allocative, Clone)] #[error( - "Validation for `{target}` failed:\n\n{}.\n\nFull validation result is located at: `{result_path}`", self.rendered_message() + "Validation for `{target}` failed:\n\n{}\n\nFull validation result is located at: `{result_path}`", self.rendered_message() )] pub(crate) struct ValidationFailedUserFacingError { target: BaseDeferredKey, @@ -42,7 +42,7 @@ impl ValidationFailedUserFacingError { pub(crate) fn rendered_message(&self) -> Cow { self.short_message.as_deref().map_or_else( || Cow::Borrowed("Diagnostic message is missing from validation result"), - |x| Cow::Owned(format!("\"{}\"", x)), + |x| Cow::Owned(format!("{}", x)), ) } }