MediaArea / MediaConch

MediaConch (funded by PREFORMA)
29 stars 11 forks source link

CLI: No feedback when referencing a non-existent policy file #199

Open nkrabben opened 7 years ago

nkrabben commented 7 years ago

When I use the CLI with a local policy, but mispell the path, MediaConch doesn't report that it failed to load the policy. Instead it falls back to default policies, and prints a blank line.

For example, here I don't complete the policy's filename.

>mediaconch -p policy.xm media_file.mov
pass! media_file.mov

This is what a successful test looks like

>mediaconch -p policy.xml media_file.mov
pass! media_file.mov

It would be helpful if MediaConch reported that no file exists when given a bad path for a policy, or that it is validating using the default policies.

ablwr commented 7 years ago

Ahhh this is a good catch. Can you also tell us your MediaConch version and OS you're working on?

nkrabben commented 7 years ago

MediaConch Command Line Interface 17.07 macOS 10.11.6

JeromeMartinez commented 6 years ago

Right, this was maybe not the smartest behavior, and we need to change that.