File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -39,19 +39,19 @@ use crate::{Gltf, GltfNode};
39
39
pub enum GltfError {
40
40
#[ error( "unsupported primitive mode" ) ]
41
41
UnsupportedPrimitive { mode : Mode } ,
42
- #[ error( "invalid GLTF file" ) ]
42
+ #[ error( "invalid GLTF file: {0} " ) ]
43
43
Gltf ( #[ from] gltf:: Error ) ,
44
44
#[ error( "binary blob is missing" ) ]
45
45
MissingBlob ,
46
46
#[ error( "failed to decode base64 mesh data" ) ]
47
47
Base64Decode ( #[ from] base64:: DecodeError ) ,
48
48
#[ error( "unsupported buffer format" ) ]
49
49
BufferFormatUnsupported ,
50
- #[ error( "invalid image mime type" ) ]
50
+ #[ error( "invalid image mime type: {0} " ) ]
51
51
InvalidImageMimeType ( String ) ,
52
- #[ error( "failed to load an image " ) ]
52
+ #[ error( "{0} " ) ]
53
53
ImageError ( #[ from] TextureError ) ,
54
- #[ error( "failed to load an asset path" ) ]
54
+ #[ error( "failed to load an asset path: {0} " ) ]
55
55
AssetIoError ( #[ from] AssetIoError ) ,
56
56
}
57
57
Original file line number Diff line number Diff line change @@ -287,7 +287,7 @@ pub enum TextureError {
287
287
InvalidImageMimeType ( String ) ,
288
288
#[ error( "invalid image extension" ) ]
289
289
InvalidImageExtension ( String ) ,
290
- #[ error( "failed to load an image" ) ]
290
+ #[ error( "failed to load an image: {0} " ) ]
291
291
ImageError ( #[ from] image:: ImageError ) ,
292
292
}
293
293
You can’t perform that action at this time.
0 commit comments