Skip to content

Commit

Permalink
Merge pull request #31 from pbaumard/master
Browse files Browse the repository at this point in the history
Update convert.js
  • Loading branch information
doowb committed May 3, 2014
2 parents b0a9b04 + b607fd3 commit 9ff88b1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tasks/convert.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 9ff88b1

Please sign in to comment.