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

Commit

Permalink
glib: Improve error string in VariantTy::new()
Browse files Browse the repository at this point in the history
  • Loading branch information
sdroege committed Nov 19, 2020
1 parent 732bbe9 commit b1684a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion glib/src/variant_type.rs
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ impl VariantTy {
if ok && end == limit {
Ok(&*(type_string.as_bytes() as *const [u8] as *const VariantTy))
} else {
Err(glib_bool_error!("Invalid type {} string", type_string))
Err(glib_bool_error!("Invalid type string: '{}'", type_string))
}
}
}
Expand Down

0 comments on commit b1684a7

Please sign in to comment.