Skip to content

Commit e14e602

Browse files
authored
Merge pull request #10 from kazu69/add_error_report_file_path
add error report with file path
2 parents c0370ce + 025cdff commit e14e602

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
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
});

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "gulp-htmlhint-inline",
33
"description": "Gulp plugin for linting inline html",
4-
"version": "0.0.6",
4+
"version": "0.0.7",
55
"homepage": "https://github.com/kazu69/gulp-htmlhint-inline",
66
"main": "index.js",
77
"author": {

0 commit comments

Comments
 (0)