mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Fix returned error types in WebGPU
This commit is contained in:
parent
a751b1c3d7
commit
430248e9c8
3 changed files with 7 additions and 16 deletions
|
@ -132,9 +132,7 @@ impl GPUMethods for GPU {
|
|||
))
|
||||
.is_err()
|
||||
{
|
||||
promise.reject_error(Error::Type(
|
||||
"Failed to send adapter request to constellation...".to_owned(),
|
||||
));
|
||||
promise.reject_error(Error::Operation);
|
||||
}
|
||||
promise
|
||||
}
|
||||
|
@ -153,10 +151,7 @@ impl AsyncWGPUListener for GPU {
|
|||
);
|
||||
promise.resolve_native(&adapter);
|
||||
},
|
||||
response => promise.reject_error(Error::Type(format!(
|
||||
"Wrong response received for GPU from WebGPU thread {:?}",
|
||||
response,
|
||||
))),
|
||||
_ => promise.reject_error(Error::Operation),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue