Use correct error messages for unreachable layouts

This commit is contained in:
Chad Stearns 2020-07-18 21:30:24 -04:00
parent bc1c676be4
commit 5b80bc0ae3

View file

@ -2467,8 +2467,8 @@ fn list_append<'a, 'ctx, 'env>(
} }
_ => { _ => {
unreachable!( unreachable!(
"Invalid List layout for first input list of List.append: {:?}", "Invalid List layout for second input list of List.append: {:?}",
first_list_layout second_list_layout
); );
} }
} }
@ -2484,7 +2484,10 @@ fn list_append<'a, 'ctx, 'env>(
) )
} }
_ => { _ => {
unreachable!("Invalid List layout for List.get: {:?}", first_list_layout); unreachable!(
"Invalid List layout for first list in List.append : {:?}",
first_list_layout
);
} }
} }
} }