Skip to content

Commit 6cc22fb

Browse files
committed
add error report with file path
1 parent c0370ce commit 6cc22fb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ gulpHtmlhintInline.defaultReporter = function(file) {
143143
if(report.success) { log(color.green(file.path + ' lint free.')); }
144144

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

148148
report.forEach(function(message) {
149149
var evidence = message.evidence,
@@ -176,7 +176,7 @@ gulpHtmlhintInline.failReporter = function() {
176176
(fails = fails || []).push(file.path);
177177

178178
if(file.htmlhint_inline && file.htmlhint_inline.length !== 0) {
179-
error = new PluginError(PLUGIN_NAME, {
179+
error = new PluginError(PLUGIN_NAME, {
180180
message: PLUGIN_NAME + ' failed for: ' + fails.join(', '),
181181
showStack: false
182182
});

0 commit comments

Comments
 (0)