Improve the message when a file has no POD

Fixes #1139.