maudit_rolldown_error_fork 0.1.0

maudit_rolldown_error_fork
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use crate::types::diagnostic_options::DiagnosticOptions;

use super::BuildEvent;

#[derive(Debug)]
pub struct SourceMapError {
  pub error: oxc_sourcemap::Error,
}

impl BuildEvent for SourceMapError {
  fn kind(&self) -> crate::event_kind::EventKind {
    crate::event_kind::EventKind::SourcemapError
  }

  fn message(&self, _opts: &DiagnosticOptions) -> String {
    format!("Error when using sourcemap for reporting an error: {:?}", self.error)
  }
}