pub enum OroScriptError {
IoError(String, Error),
SerdeError(Error),
SpawnError(Error),
MissingEvent(String),
JoinPathError(JoinPathsError),
ScriptProcessError(Error),
ScriptError(ExitStatus, Option<Vec<u8>>, Option<Vec<u8>>),
}
Variants§
IoError(String, Error)
Generic IO-related error. Refer to the error message for more details.
SerdeError(Error)
Generic serde-related error. Refer to the error message for more details.
SpawnError(Error)
Failed to spawn child process when executing a script. Refer to the error message for more details.
MissingEvent(String)
Failed to find an event in a package’s package.json
. This means, for
example, that a "postinstall"
script was requested, but not actually
present.
JoinPathError(JoinPathsError)
Failed to join new contents of PATH variable while trying to add a
node_modules/.bin
entry to the PATH.
When executing a script, the current package and their ancestors get
their node_modules/.bin
directories added to the PATH. This error
means something went wrong while putting the variable back together.
For more details on what may have happened, refer to the error
message.
ScriptProcessError(Error)
Something went wrong while performing an operation on a script’s process. For more details, refer to the error message.
ScriptError(ExitStatus, Option<Vec<u8>>, Option<Vec<u8>>)
The script terminated with a non-zero exit code, meaning some error happened with the script itself. Details may have been logged in the log file/stdout/stderr.
Trait Implementations§
Source§impl Debug for OroScriptError
impl Debug for OroScriptError
Source§impl Diagnostic for OroScriptError
impl Diagnostic for OroScriptError
Source§fn code(&self) -> Option<Box<dyn Display + '_>>
fn code(&self) -> Option<Box<dyn Display + '_>>
Diagnostic
. Ideally also globally unique, and documented
in the toplevel crate’s documentation for easy searching. Rust path
format (foo::bar::baz
) is recommended, but more classic codes like
E0123
or enums will work just fine.Source§fn url(&self) -> Option<Box<dyn Display + '_>>
fn url(&self) -> Option<Box<dyn Display + '_>>
Diagnostic
.Source§fn severity(&self) -> Option<Severity>
fn severity(&self) -> Option<Severity>
ReportHandler
s to change the display format
of this diagnostic. Read moreSource§fn help<'a>(&'a self) -> Option<Box<dyn Display + 'a>>
fn help<'a>(&'a self) -> Option<Box<dyn Display + 'a>>
Diagnostic
. Do you have any
advice for the poor soul who’s just run into this issue?Source§fn source_code(&self) -> Option<&dyn SourceCode>
fn source_code(&self) -> Option<&dyn SourceCode>
Diagnostic
’s Diagnostic::labels
to.Source§fn labels(&self) -> Option<Box<dyn Iterator<Item = LabeledSpan> + '_>>
fn labels(&self) -> Option<Box<dyn Iterator<Item = LabeledSpan> + '_>>
Diagnostic
’s Diagnostic::source_code
Diagnostic
s.