Print file where YAML/JSON errors occur. Fixes #954.