Skip to content

Commit

Permalink
better error return
Browse files Browse the repository at this point in the history
  • Loading branch information
kentslaney committed Feb 7, 2025
1 parent b33797b commit de9a2af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions naga/src/valid/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -702,11 +702,11 @@ impl Validator {
.with_span_handle(handle, &module.overrides)
})?;
} else {
Err(ValidationError::UninitializedOverride {
return Err(ValidationError::UninitializedOverride {
handle,
name: r#override.name.clone().unwrap_or_default(),
}
.with_span_handle(handle, &module.overrides))?;
.with_span_handle(handle, &module.overrides));
}
}
}
Expand Down

0 comments on commit de9a2af

Please sign in to comment.