mirror of
https://github.com/erg-lang/erg.git
synced 2025-09-29 12:24:45 +00:00
impl Error for CompileError
This commit is contained in:
parent
7fad8d9eee
commit
792c0ca3b4
3 changed files with 22 additions and 2 deletions
|
@ -6,7 +6,7 @@ use erg_common::color::{RED, RESET};
|
|||
use erg_common::config::Input;
|
||||
use erg_common::error::{ErrorCore, ErrorDisplay, ErrorKind::*, Location, MultiErrorDisplay};
|
||||
use erg_common::traits::Stream;
|
||||
use erg_common::{impl_stream_for_wrapper, switch_lang};
|
||||
use erg_common::{impl_display_and_error, impl_stream_for_wrapper, switch_lang};
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct LexError(ErrorCore);
|
||||
|
@ -144,6 +144,8 @@ pub struct ParserRunnerError {
|
|||
pub input: Input,
|
||||
}
|
||||
|
||||
impl_display_and_error!(ParserRunnerError);
|
||||
|
||||
impl ErrorDisplay for ParserRunnerError {
|
||||
fn core(&self) -> &ErrorCore {
|
||||
&self.core
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue