diff --git a/tasks/convert.js b/tasks/convert.js index 78561d0..dfa7c3c 100644 --- a/tasks/convert.js +++ b/tasks/convert.js @@ -90,6 +90,9 @@ handled = true; var parse = require('xml2js').parseString; parse(srcFiles, options, function(err, result) { + if (err) { + grunt.fail.warn('File ' + f.dest.cyan + ' parsing errors: ' + err); + } data = JSON.stringify(result, null, options.indent); grunt.file.write(f.dest, data); finish();