Skip to content

Commit 195caff

Browse files
committed
more helpful error message for incorrect c account size
1 parent d29f1b5 commit 195caff

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

program/rust/src/time_machine_types.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ fn c_time_machine_size_is_correct() {
1515
assert_eq!(
1616
::std::mem::size_of::<TimeMachineWrapper>(),
1717
c_oracle_header::TIME_MACHINE_STRUCT_SIZE.try_into().unwrap(),
18-
"expected TIME_MACHINE_STRUCT_SIZE in oracle.h to the same as the size of TimeMachineWrapper"
18+
"expected TIME_MACHINE_STRUCT_SIZE ({}) in oracle.h to the same as the size of TimeMachineWrapper ({})",
19+
c_oracle_header::TIME_MACHINE_STRUCT_SIZE,
20+
::std::mem::size_of::<TimeMachineWrapper>()
1921
);
2022
}

0 commit comments

Comments
 (0)