mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-22 23:41:01 +01:00
fix(cts): render full err. msg. in Device::create_*_pipeline_async (#8788)
This commit is contained in:
1 parent
878a180a00
commit
81542eadc3
2 files changed
+4
-4
No files matched your search
@@ -29,7 +29,7 @@ use crate::adapter::GPUAdapterInfo;
|
||||
use crate::adapter::GPUSupportedFeatures;
|
||||
use crate::adapter::GPUSupportedLimits;
|
||||
use crate::command_encoder::GPUCommandEncoder;
|
||||
use crate::error::make_pipeline_error;
|
||||
use crate::error::{fmt_err, make_pipeline_error};
|
||||
use crate::error::{GPUError, GPUGenericError, GPUPipelineErrorReason};
|
||||
use crate::query_set::GPUQuerySet;
|
||||
use crate::render_bundle::GPURenderBundleEncoder;
|
||||
@@ -532,7 +532,7 @@ impl GPUDevice {
|
||||
let err = make_pipeline_error(
|
||||
scope,
|
||||
GPUPipelineErrorReason::Validation,
|
||||
&err.to_string(),
|
||||
&fmt_err(&err),
|
||||
);
|
||||
resolver.reject(scope, err.into());
|
||||
} else {
|
||||
@@ -559,7 +559,7 @@ impl GPUDevice {
|
||||
let err = make_pipeline_error(
|
||||
scope,
|
||||
GPUPipelineErrorReason::Validation,
|
||||
&err.to_string(),
|
||||
&fmt_err(&err),
|
||||
);
|
||||
resolver.reject(scope, err.into());
|
||||
} else {
|
||||
|
||||
@@ -201,7 +201,7 @@ impl GPUError {
|
||||
}
|
||||
}
|
||||
|
||||
fn fmt_err(err: &(dyn std::error::Error + 'static)) -> String {
|
||||
pub(crate) fn fmt_err(err: &(dyn std::error::Error + 'static)) -> String {
|
||||
let mut output = err.to_string();
|
||||
|
||||
let mut e = err.source();
|
||||
|
||||
Reference in new issue
Block a user