Fix bad operator (#3479)

This commit is contained in:
JT
2021-05-24 17:27:10 +12:00
committed by GitHub
parent 3bcc2aad80
commit 5fcc7f2328
4 changed files with 23 additions and 4 deletions

View File

@ -59,7 +59,11 @@ pub fn evaluate_baseline_expr(
)),
}
}
_ => unreachable!(),
_ => Err(ShellError::labeled_error(
"Unknown operator",
"unknown operator",
binary.op.span,
)),
}
}
Expression::Range(range) => {