Skip to content

Commit

Permalink
Error: Make ErrorKind::TooMuchData's message less confusing
Browse files Browse the repository at this point in the history
  • Loading branch information
Serial-ATA committed Oct 23, 2023
1 parent 172e8ff commit fc9877a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ impl Display for LoftyError {
// Files
ErrorKind::TooMuchData => write!(
f,
"An abnormally large amount of data was provided, and an overflow occurred"
"Attempted to read/write an abnormally large amount of data"
),
ErrorKind::SizeMismatch => write!(
f,
Expand Down
2 changes: 1 addition & 1 deletion src/probe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ impl ParseOptions {
/// The maximum number of bytes to allocate for any single tag item
///
/// This is a safety measure to prevent allocating too much memory for a single tag item. If a tag item
/// exceeds this limit, the allocator will return [`ErrorKind::TooMuchData`].
/// exceeds this limit, the allocator will return [`crate::error::ErrorKind::TooMuchData`].
///
/// # Examples
///
Expand Down

0 comments on commit fc9877a

Please sign in to comment.