Add fallible functions support and replace most arithmetic operations with checked versions.
This commit is contained in:
@@ -143,6 +143,9 @@ impl fmt::Display for ParseError {
|
||||
|
||||
if !self.1.is_eof() {
|
||||
write!(f, " ({})", self.1)
|
||||
} else if !self.1.is_none() {
|
||||
// Do not write any position if None
|
||||
Ok(())
|
||||
} else {
|
||||
write!(f, " at the end of the script but there is no more input")
|
||||
}
|
||||
|
Reference in New Issue
Block a user