mirror of
https://github.com/servo/servo
synced 2026-05-03 12:52:25 +02:00
script: Add message to NotFoundError (#39394)
Adding an optional message to be attached to a NotFoundError. Testing: Just a refactor Part of #39053 --------- Signed-off-by: Rodion Borovyk <rodion.borovyk@gmail.com>
This commit is contained in:
@@ -337,12 +337,12 @@ impl HTMLFormElementMethods<crate::DomTypeHolder> for HTMLFormElement {
|
||||
let owner = match submitters_owner {
|
||||
Some(owner) => owner,
|
||||
None => {
|
||||
return Err(Error::NotFound);
|
||||
return Err(Error::NotFound(None));
|
||||
},
|
||||
};
|
||||
|
||||
if *owner != *self {
|
||||
return Err(Error::NotFound);
|
||||
return Err(Error::NotFound(None));
|
||||
}
|
||||
|
||||
submit_button
|
||||
|
||||
Reference in New Issue
Block a user