Skip to content

Commit

Permalink
(feat) add info to gulp-notify
Browse files Browse the repository at this point in the history
Notification now displays plugin that errored and error message.
  • Loading branch information
dustinspecker committed Jan 15, 2015
1 parent b07ec9f commit bb4600f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/templates/_build.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ gulp.task('styles', ['clean'], function () {
, stylusFilter = $.filter('**/*.styl')
, onError = function (err) {
$.notify.onError({
title: 'Syntax error in CSS',
title: 'Error linting at ' + err.plugin,
subtitle: ' ', //overrides defaults
message: ' ', //overrides defaults
message: err.message.replace(/\u001b\[.*?m/g, ''),
sound: ' ' //overrides defaults
})(err);

Expand Down
4 changes: 2 additions & 2 deletions app/templates/analyze.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ gulp.task('lint', function () {
, jsFilter = $.filter('**/*.js')
, onError = function (err) {
$.notify.onError({
title: 'Error linting the JS',
title: 'Error linting at ' + err.plugin,
subtitle: ' ', //overrides defaults
message: ' ', //overrides defaults
message: err.message.replace(/\u001b\[.*?m/g, ''),
sound: ' ' //overrides defaults
})(err);

Expand Down

0 comments on commit bb4600f

Please sign in to comment.