Skip to content

Commit cb5675c

Browse files
committed
a slight fix error message
1 parent c318c0b commit cb5675c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ndarrayext.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ pub fn to_2d_simple<'a, T: 'a, D>(data: ArrayView<'a, T, D>) -> Result<ArrayView
8888
Err(err) => {
8989
return Err(
9090
ReshapeError(
91-
format!("Cannot reshape data array with shape {:?} to 2-d array with \
92-
shape {:?}. Error: {}", shape, new_shape, err)
91+
format!("Cannot reshape {}-d array with shape {:?} to 2-d array with \
92+
shape {:?}. Error: {}", ndim, shape, new_shape, err)
9393
)
9494
)
9595
}

0 commit comments

Comments
 (0)