Skip to content
This repository was archived by the owner on Mar 4, 2024. It is now read-only.

Commit ee8edd3

Browse files
sdroegebilelmoussaoui
authored andcommitted
glib: Improve error string in VariantTy::new()
1 parent 8d1c331 commit ee8edd3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

glib/src/variant_type.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ impl VariantTy {
151151
if ok && end == limit {
152152
Ok(&*(type_string.as_bytes() as *const [u8] as *const VariantTy))
153153
} else {
154-
Err(glib_bool_error!("Invalid type {} string", type_string))
154+
Err(glib_bool_error!("Invalid type string: '{}'", type_string))
155155
}
156156
}
157157
}

0 commit comments

Comments
 (0)