jets: restore default interpreter::Error -> JetErr conversion

This commit is contained in:
Alex Shelkovnykov 2023-11-15 13:10:15 +01:00
parent 98c8e18230
commit bfac32214c

View File

@ -49,6 +49,12 @@ pub enum JetErr {
Fail(Error), // Error; do not retry
}
impl From<Error> for JetErr {
fn from(err: Error) -> Self {
Self::Fail(err)
}
}
impl From<noun::Error> for JetErr {
fn from(_err: noun::Error) -> Self {
Self::Fail(Error::Deterministic(D(0)))