Skip to content

Commit e2b1836

Browse files
committed
Better error message in AssetVideo
1 parent a841bb0 commit e2b1836

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/store/re_types/src/archetypes/asset_video_ext.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ impl AssetVideo {
5252
re_tracing::profile_function!();
5353

5454
let Some(blob_bytes) = self.blob.as_ref().and_then(Blob::serialized_blob_as_slice) else {
55-
return Ok(Vec::new());
55+
return Err(re_video::VideoLoadError::NoVideoTrack); // Error type is close enough
5656
};
5757

5858
let Some(media_type) = self

0 commit comments

Comments
 (0)