Skip to content

Commit 403f4e8

Browse files
committed
differentiate reporting on incomplete and invalid
1 parent 648be0a commit 403f4e8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

bagit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -855,7 +855,7 @@ def _validate_completeness(self):
855855
errors.append(e)
856856

857857
if errors:
858-
raise BagValidationError(_("Bag validation failed"), errors)
858+
raise BagValidationError(_("Bag is incomplete"), errors)
859859

860860
def _validate_entries(self, processes):
861861
"""

test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ def test_validation_completeness_error_details(self):
219219
got_exception = True
220220

221221
exc_str = str(e)
222-
self.assertIn("Bag validation failed: ", exc_str)
222+
self.assertIn("Bag is incomplete: ", exc_str)
223223
self.assertIn(
224224
"bag-info.txt exists in manifest but was not found on filesystem",
225225
exc_str,

0 commit comments

Comments
 (0)