aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/gpu.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/gpu.rs')
-rw-r--r--components/script/dom/gpu.rs9
1 files changed, 2 insertions, 7 deletions
diff --git a/components/script/dom/gpu.rs b/components/script/dom/gpu.rs
index 4c4bd830f6e..65f9cdeb0f8 100644
--- a/components/script/dom/gpu.rs
+++ b/components/script/dom/gpu.rs
@@ -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),
}
}
}