Provide friendly message for corrupted config

Fixes #409