use crate::runner::RunnerError;
use hurl_core::ast::SourceInfo;
use hurl_core::error::DisplaySourceError;
use hurl_core::text::StyledString;
#[derive(Clone, Debug, PartialEq, Eq)]
pub struct OutputError(RunnerError);
impl From<RunnerError> for OutputError {
fn from(error: RunnerError) -> Self {
OutputError(error)
}
}
impl DisplaySourceError for OutputError {
fn source_info(&self) -> SourceInfo {
self.0.source_info
}
fn description(&self) -> String {
self.0.description()
}
fn fixme(&self, content: &[&str]) -> StyledString {
self.0.fixme(content)
}
}