nodejs_resolver/
error.rs

1use std::{io, path::Path};
2
3#[derive(Debug)]
4pub enum Error {
5    Io(io::Error),
6    UnexpectedJson((Box<Path>, serde_json::Error)),
7    UnexpectedValue(String),
8    ResolveFailedTag,
9    Overflow,
10    CantFindTsConfig(Box<Path>),
11}
12
13impl From<std::io::Error> for Error {
14    fn from(value: std::io::Error) -> Self {
15        Self::Io(value)
16    }
17}