aaaaf4c
use std::error::Error;
use crate::error::BabyError;
pub fn facade_error<E: Error + Send + Sync + 'static>(e: E) -> BabyError {
BabyError::Custom(format!("facade error: {}", e))
}
pub fn spawn_failure(prog: &str, source: std::io::Error) -> BabyError {
BabyError::Spawn {
prog: prog.to_string(),
source,
stderr: String::new(),
}
}