elemental_core/launcher/error.rs
1use std::{io, path::PathBuf};
2
3#[derive(Debug, thiserror::Error)]
4#[non_exhaustive]
5pub enum Error {
6 #[error("launch executable is empty")]
7 EmptyExecutable,
8
9 #[error("failed to spawn '{}': {source}", program.display())]
10 Spawn {
11 program: PathBuf,
12 #[source]
13 source: io::Error,
14 },
15}
16
17pub type Result<T> = std::result::Result<T, Error>;