Skip to content

Commit

Permalink
dump a stack trace to verbose on template errors
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartf committed Nov 16, 2012
1 parent fc87703 commit fd7c859
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/grunt/template.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ template.process = function(template, data, mode) {
last = template;
}
} catch (e) {
grunt.verbose.writeln(e.stack);
grunt.warn('An error occurred while processing a template (' + e.message + ').');
}
// Normalize linefeeds and return.
Expand Down

0 comments on commit fd7c859

Please sign in to comment.