Skip to content

Commit 148a64d

Browse files
committed
make err msg more detial
1 parent cc10623 commit 148a64d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/meta/proto-conv/src/user_from_to_protobuf_impl.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ impl FromToProto for mt::principal::GrantObject {
160160
reader_check_msg(p.ver, p.min_reader_ver)?;
161161

162162
let Some(object) = p.object else {
163-
return Err(Incompatible::new("GrantObject cannot be None".to_string()));
163+
return Err(Incompatible::new(format!("Incompatible GrantObject type: Data contains an unrecognized variant for {} version", p.ver)));
164164
};
165165

166166
match object {

0 commit comments

Comments
 (0)