mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 23:04:49 +00:00
Use correct error messages for unreachable layouts
This commit is contained in:
parent
bc1c676be4
commit
5b80bc0ae3
1 changed files with 6 additions and 3 deletions
|
@ -2467,8 +2467,8 @@ fn list_append<'a, 'ctx, 'env>(
|
|||
}
|
||||
_ => {
|
||||
unreachable!(
|
||||
"Invalid List layout for first input list of List.append: {:?}",
|
||||
first_list_layout
|
||||
"Invalid List layout for second input list of List.append: {:?}",
|
||||
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
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue