Skip to content

Commit d839973

Browse files
authored
chore: fix error message for unwrap_scalar (#5515)
Signed-off-by: James Xu <[email protected]>
1 parent 25095f7 commit d839973

File tree

1 file changed

+1
-1
lines changed
  • vortex-array/src/compute

1 file changed

+1
-1
lines changed

vortex-array/src/compute/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ impl Output {
392392

393393
pub fn unwrap_scalar(self) -> VortexResult<Scalar> {
394394
match self {
395-
Output::Array(_) => vortex_bail!("Expected array output, got Array"),
395+
Output::Array(_) => vortex_bail!("Expected scalar output, got Array"),
396396
Output::Scalar(scalar) => Ok(scalar),
397397
}
398398
}

0 commit comments

Comments
 (0)