Skip to content

Commit 1f95ef1

Browse files
authored
reformulate keep[] error message (#816)
* reformulate keep[] error message * typo
1 parent 3ba1753 commit 1f95ef1

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/algorithm/dyadic/mod.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1028,9 +1028,7 @@ pub(super) fn pad_keep_counts<'a>(
10281028
}
10291029
Err(e) if counts.is_empty() => {
10301030
return Err(env.error(format!(
1031-
"Cannot keep array with shape {} with array of shape {}{e}",
1032-
len,
1033-
FormatShape(&[amount.len()])
1031+
"Cannot keep array of length {len} with array of length 0{e}",
10341032
)))
10351033
}
10361034
Err(_) => {

0 commit comments

Comments
 (0)