Skip to content

Commit

Permalink
chore: made XML error messages consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
jqnatividad committed Oct 30, 2024
1 parent 294ead7 commit 5ddf2bd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/ods.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ impl std::fmt::Display for OdsError {
}
OdsError::Password => write!(f, "Workbook is password protected"),
OdsError::WorksheetNotFound(name) => write!(f, "Worksheet '{name}' not found"),
OdsError::AttrError(e) => write!(f, "XML Attribute Error: {e}"),
OdsError::EncodingError(e) => write!(f, "XML Encoding Error: {e}"),
OdsError::AttrError(e) => write!(f, "XML attribute Error: {e}"),
OdsError::EncodingError(e) => write!(f, "XML encoding Error: {e}"),
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/xlsb/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ impl std::fmt::Display for XlsbError {
}
XlsbError::Password => write!(f, "Workbook is password protected"),
XlsbError::WorksheetNotFound(name) => write!(f, "Worksheet '{name}' not found"),
XlsbError::Encoding(e) => write!(f, "Encoding error: {e}"),
XlsbError::Encoding(e) => write!(f, "XML encoding error: {e}"),
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/xlsx/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ impl std::fmt::Display for XlsxError {
XlsxError::Password => write!(f, "Workbook is password protected"),
XlsxError::TableNotFound(n) => write!(f, "Table '{n}' not found"),
XlsxError::NotAWorksheet(typ) => write!(f, "Expecting a worksheet, got {typ}"),
XlsxError::Encoding(e) => write!(f, "Encoding error: {e}"),
XlsxError::Encoding(e) => write!(f, "XML encoding error: {e}"),
XlsxError::XmlAttribute(e) => write!(f, "XML attribute error: {e}"),
}
}
Expand Down

0 comments on commit 5ddf2bd

Please sign in to comment.