Errors - ErrorHandler.report() consumes the error
This commit is contained in:
parent
260b19030f
commit
d0d4038272
1 changed files with 1 additions and 1 deletions
|
@ -73,7 +73,7 @@ impl ErrorHandler {
|
|||
}
|
||||
|
||||
/// Report an error.
|
||||
pub fn report(&mut self, error: &SloxError) {
|
||||
pub fn report(&mut self, error: SloxError) {
|
||||
if self.had_error.is_none() {
|
||||
self.had_error = Some(error.kind);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue