diff --git a/src/error.rs b/src/error.rs index bd9950c..a46b915 100644 --- a/src/error.rs +++ b/src/error.rs @@ -56,7 +56,10 @@ impl fmt::Display for CompileError { }?; // Print line number: - write!(f, " at line {:?}", self.location.row()) + match &self.error { + CompileErrorType::Parse(..) => Ok(()), + _ => write!(f, " at line {:?}", self.location.row()), + } } }