mirror of
https://github.com/servo/servo
synced 2026-04-25 17:15:48 +02:00
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:
@@ -116,7 +116,7 @@ impl AudioNodeMethods<crate::DomTypeHolder> for AudioNode {
|
||||
input: u32,
|
||||
) -> Fallible<DomRoot<AudioNode>> {
|
||||
if self.context != destination.context {
|
||||
return Err(Error::InvalidAccess);
|
||||
return Err(Error::InvalidAccess(None));
|
||||
}
|
||||
|
||||
if output >= self.NumberOfOutputs() || input >= destination.NumberOfInputs() {
|
||||
@@ -140,7 +140,7 @@ impl AudioNodeMethods<crate::DomTypeHolder> for AudioNode {
|
||||
/// <https://webaudio.github.io/web-audio-api/#dom-audionode-connect-destinationparam-output>
|
||||
fn Connect_(&self, dest: &AudioParam, output: u32) -> Fallible<()> {
|
||||
if self.context != dest.context() {
|
||||
return Err(Error::InvalidAccess);
|
||||
return Err(Error::InvalidAccess(None));
|
||||
}
|
||||
|
||||
if output >= self.NumberOfOutputs() {
|
||||
|
||||
Reference in New Issue
Block a user