Skip to content

More detail desired for error messages  #147

Open
@jamiepb

Description

@jamiepb

Hello,

It appears to me that if an error is raised, it only contains details if it gets past the Payload-Oxum check - is that correct? If I have a bag that is missing a file, I get an error such as "Payload-Oxum validation failed. Expected 4 files and 2865126 bytes but found 3 files and 2864947 bytes". However I would also like to know which file is missing. I tried using a script to catch the BagValidationError and print the details for this example, as suggested in the documentation for using BagIt in programs, but the details list is empty so it doesn't look like the code to to the step of generating an instance of the FileMissing type. Bagger will tell you which file is missing from the bag, which I think is helpful information. That said I am a Python novice so I may be missing something. Thank you for clarifying.

Jamie

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions