diff --git a/crates/bevy_render/src/render_resource/pipeline_cache.rs b/crates/bevy_render/src/render_resource/pipeline_cache.rs index 653ae70b1c..706ebd23f2 100644 --- a/crates/bevy_render/src/render_resource/pipeline_cache.rs +++ b/crates/bevy_render/src/render_resource/pipeline_cache.rs @@ -208,7 +208,11 @@ impl ShaderCache { } composer.add_composable_module(shader.into())?; + } else { + Err(PipelineCacheError::ShaderImportNotYetAvailable)?; } + } else { + Err(PipelineCacheError::ShaderImportNotYetAvailable)?; } // if we fail to add a module the composer will tell us what is missing }