Skip to content

Commit a161fe5

Browse files
committed
[parser] add MissingMetaElement error variant
1 parent 269384a commit a161fe5

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

parser/src/error.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ quick_error! {
1919
InvalidFormat {
2020
description("Content is not DICOM or is corrupted")
2121
}
22+
/// A required element in the meta group is missing
23+
MissingMetaElement(name: &'static str) {
24+
display("Missing required meta element `{}`", name)
25+
}
2226
/// Raised when the obtained data element was not the one expected.
2327
UnexpectedTag(tag: Tag) {
2428
description("Unexpected DICOM element tag in current reading position")

parser/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
//!
88
//! For a more intuitive, object-oriented API, please see the `dicom-object`
99
//! crate.
10-
#![recursion_limit = "80"]
10+
#![recursion_limit = "90"]
1111

1212
pub mod dataset;
1313
pub mod error;

0 commit comments

Comments
 (0)