Skip to content

Commit

Permalink
add error report with file path
Browse files Browse the repository at this point in the history
  • Loading branch information
kazu69 committed Oct 18, 2016
1 parent c0370ce commit 6cc22fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ gulpHtmlhintInline.defaultReporter = function(file) {
if(report.success) { log(color.green(file.path + ' lint free.')); }

if(!report.success) {
log(color.cyan(report.length) + ' error' + (report.length === 1 ? '' : 's') + ' found');
log(color.cyan(report.length) + ' error' + (report.length === 1 ? '' : 's') + ' found at ' + color.gray(file.path));

report.forEach(function(message) {
var evidence = message.evidence,
Expand Down Expand Up @@ -176,7 +176,7 @@ gulpHtmlhintInline.failReporter = function() {
(fails = fails || []).push(file.path);

if(file.htmlhint_inline && file.htmlhint_inline.length !== 0) {
error = new PluginError(PLUGIN_NAME, {
error = new PluginError(PLUGIN_NAME, {
message: PLUGIN_NAME + ' failed for: ' + fails.join(', '),
showStack: false
});
Expand Down

0 comments on commit 6cc22fb

Please sign in to comment.