[oden] Load typescript kinda

This commit is contained in:
John Doty 2023-06-24 14:21:47 -07:00
parent cc21e8c406
commit 3968aabdb1
10 changed files with 1284 additions and 31 deletions

View file

@ -119,6 +119,7 @@ impl TryIntoValue for Error {
Error::Exception(v, d) => Err(Error::Exception(v.dup(ctx), d)),
Error::OutOfMemory => Err(Error::OutOfMemory),
Error::IOError(e) => Err(Error::IOError(e)),
Error::ParseError(name, err) => Err(Error::ParseError(name, err)),
}
}
}

View file

@ -45,6 +45,8 @@ pub enum Error {
OutOfMemory,
#[error("an io error occurred: {0}")]
IOError(std::io::Error),
#[error("one or more errors occurred parsing {0}: {1}")]
ParseError(String, String),
}
impl From<NulError> for Error {