mirror of
https://github.com/nushell/nushell
synced 2025-01-19 16:44:46 +00:00
18 lines
347 B
Rust
18 lines
347 B
Rust
|
use crate::{Span, Type};
|
||
|
|
||
|
#[derive(Debug)]
|
||
|
pub enum ShellError {
|
||
|
OperatorMismatch {
|
||
|
op_span: Span,
|
||
|
lhs_ty: Type,
|
||
|
lhs_span: Span,
|
||
|
rhs_ty: Type,
|
||
|
rhs_span: Span,
|
||
|
},
|
||
|
Unsupported(Span),
|
||
|
InternalError(String),
|
||
|
VariableNotFound(Span),
|
||
|
CantConvert(String, Span),
|
||
|
DivisionByZero(Span),
|
||
|
}
|