Issue 1787 (#1827)

This commit is contained in:
Alexander James
2020-05-23 18:08:39 -06:00
committed by GitHub
parent 460daf029b
commit aadbcf5ce8
6 changed files with 227 additions and 10 deletions

View File

@ -531,7 +531,8 @@ impl std::ops::Add for Value {
UntaggedValue::from(left.add(right)).into_value(tag)
}
(_, _) => unimplemented!("Internal error: can't add non-primitives."),
(_, _) => UntaggedValue::Error(ShellError::unimplemented("Can't add non-primitives."))
.into_value(tag),
}
}
}