script: Finish converting all error message enum variants to Option<String> (#40750)

I used find and replace to finish the job. All this PR does is replace
all `Error::<error_name>` occurrences with `Error::<error_name>(None)`.

Testing: Refactor
Fixes: #39053

Signed-off-by: Ashwin Naren <arihant2math@gmail.com>
This commit is contained in:
Ashwin Naren
2025-11-19 22:20:47 -08:00
committed by GitHub
parent 135bc7de36
commit e0eb23ce18
74 changed files with 796 additions and 714 deletions

View File

@@ -109,7 +109,7 @@ impl CSSMethods<crate::DomTypeHolder> for CSS {
RegisterPropertyError::InitialValueNotComputationallyIndependent => {
Error::Syntax(None)
},
RegisterPropertyError::AlreadyRegistered => Error::InvalidModification,
RegisterPropertyError::AlreadyRegistered => Error::InvalidModification(None),
})?;
Ok(())