Skip to content

Commit

Permalink
InputTooLarge is more an IO "error"
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Bartlett authored and Licenser committed Oct 28, 2024
1 parent 6a57b0e commit 7bcc6f1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ impl Error {
pub fn is_io(&self) -> bool {
// We have to include InternalError _somewhere_
match &self.error {
ErrorType::Io(_) => true,
ErrorType::Io(_) | ErrorType::InputTooLarge => true,
ErrorType::InternalError(e) if !matches!(e, crate::InternalError::TapeError) => true,
_ => false
}
Expand All @@ -236,7 +236,6 @@ impl Error {
// Lazy? maybe but if it aint something else...
matches!(self.error,
ErrorType::InternalError(crate::InternalError::TapeError) | //This seems to get thrown on some syntax errors
ErrorType::InputTooLarge |
ErrorType::BadKeyType |
ErrorType::ExpectedArrayComma |
ErrorType::ExpectedObjectColon |
Expand Down

0 comments on commit 7bcc6f1

Please sign in to comment.