Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /home/pahuang/work/zanata-spa/gulpfile.js:40
- notify.notifyError({
- ^
- TypeError: Object function (options) {
- var reporter, notifier;
- options = options || {};
- var templateOptions = options.templateOptions || {};
- if (options.notifier) {
- reporter = options.notifier;
- } else {
- notifier = new Notification(options);
- reporter = notifier.notify.bind(notifier);
- }
- var lastFile = null;
- function notify (file, enc, callback) {
- var stream = this;
- report(reporter, file, options, templateOptions, function (err) {
- logError(err, stream);
- if (options.emitError) {
- stream.push(file);
- return callback();
- }
- });
- if (!options.emitError) {
- stream.push(file);
- return callback();
- }
- }
- if (!options.onLast) {
- return through.obj(notify);
- }
- // Only send notification on the last file.
- return through.obj(function (file, enc, callback) {
- lastFile = file;
- this.push(file);
- callback();
- }, function (callback) {
- var stream = this;
- if (!lastFile) {
- return callback();
- }
- report(reporter, lastFile, options, templateOptions, function (err) {
- logError(err, stream);
- if (options.emitError) {
- return callback();
- }
- });
- lastFile = null; // reset
- if (!options.emitError) {
- return callback();
- }
- });
- function logError (err, stream) {
- if (!err) return;
- var isGrowl = notifier && notifier instanceof Notification.Growl;
- var isEcon = err.message.indexOf('ECONNREFUSED') !== -1;
- var dropMessage = isGrowl && isEcon;
- if (dropMessage) {
- return extra.logError({
- title: 'Info',
- message: 'No notification system installed.'
- });
- }
- if (options.emitError) return stream.emit('error', err);
- extra.logError({
- title: "Error in notifier",
- message: err
- }, true);
- }
- } has no method 'notifyError'
- at Transform.notifyError [as errorHandler] (/home/pahuang/work/zanata-spa/gulpfile.js:40:10)
- at Transform.emit (events.js:117:20)
- at Transform._transform (/home/pahuang/work/zanata-spa/node_modules/gulp-rework/index.js:30:9)
- at Transform._read (/home/pahuang/work/zanata-spa/node_modules/gulp-rework/node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:184:10)
- at Transform._write (/home/pahuang/work/zanata-spa/node_modules/gulp-rework/node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:172:12)
- at doWrite (/home/pahuang/work/zanata-spa/node_modules/gulp-rework/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:237:10)
- at writeOrBuffer (/home/pahuang/work/zanata-spa/node_modules/gulp-rework/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:227:5)
- at Transform.Writable.write (/home/pahuang/work/zanata-spa/node_modules/gulp-rework/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:194:11)
- at write (/home/pahuang/work/zanata-spa/node_modules/gulp-plumber/node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js:623:24)
- at flow (/home/pahuang/work/zanata-spa/node_modules/gulp-plumber/node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js:632:7)
- at DestroyableTransform.pipeOnReadable (/home/pahuang/work/zanata-spa/node_modules/gulp-plumber/node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js:664:5)
- at DestroyableTransform.emit (events.js:117:20)
- at emitReadable_ (/home/pahuang/work/zanata-spa/node_modules/gulp-plumber/node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js:448:10)
- at emitReadable (/home/pahuang/work/zanata-spa/node_modules/gulp-plumber/node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js:444:5)
- at readableAddChunk (/home/pahuang/work/zanata-spa/node_modules/gulp-plumber/node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js:187:9)
- at DestroyableTransform.Readable.push (/home/pahuang/work/zanata-spa/node_modules/gulp-plumber/node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js:149:10)
- at DestroyableTransform.Transform.push (/home/pahuang/work/zanata-spa/node_modules/gulp-plumber/node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:145:32)
- at afterTransform (/home/pahuang/work/zanata-spa/node_modules/gulp-plumber/node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:101:12)
- at TransformState.afterTransform (/home/pahuang/work/zanata-spa/node_modules/gulp-plumber/node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:79:12)
- at DestroyableTransform.noop [as _transform] (/home/pahuang/work/zanata-spa/node_modules/gulp-plumber/node_modules/through2/through2.js:26:3)
- at DestroyableTransform.Transform._read (/home/pahuang/work/zanata-spa/node_modules/gulp-plumber/node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:184:10)
- at DestroyableTransform.Transform._write (/home/pahuang/work/zanata-spa/node_modules/gulp-plumber/node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:172:12)
- at doWrite (/home/pahuang/work/zanata-spa/node_modules/gulp-plumber/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:237:10)
- at writeOrBuffer (/home/pahuang/work/zanata-spa/node_modules/gulp-plumber/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:227:5)
- at DestroyableTransform.Writable.write (/home/pahuang/work/zanata-spa/node_modules/gulp-plumber/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:194:11)
- at write (/home/pahuang/work/zanata-spa/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js:623:24)
- at flow (/home/pahuang/work/zanata-spa/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js:632:7)
- at DestroyableTransform.pipeOnReadable (/home/pahuang/work/zanata-spa/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js:664:5)
- at DestroyableTransform.emit (events.js:92:17)
- at emitReadable_ (/home/pahuang/work/zanata-spa/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js:448:10)
- at emitReadable (/home/pahuang/work/zanata-spa/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js:444:5)
- at readableAddChunk (/home/pahuang/work/zanata-spa/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js:187:9)
- at DestroyableTransform.Readable.push (/home/pahuang/work/zanata-spa/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js:149:10)
- at DestroyableTransform.Transform.push (/home/pahuang/work/zanata-spa/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:145:32)
- at afterTransform (/home/pahuang/work/zanata-spa/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:101:12)
- at TransformState.afterTransform (/home/pahuang/work/zanata-spa/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:79:12)
- at DestroyableTransform.noop [as _transform] (/home/pahuang/work/zanata-spa/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2/through2.js:26:3)
- at DestroyableTransform.Transform._read (/home/pahuang/work/zanata-spa/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:184:10)
- at DestroyableTransform.Transform._write (/home/pahuang/work/zanata-spa/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:172:12)
- at doWrite (/home/pahuang/work/zanata-spa/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:237:10)
- at writeOrBuffer (/home/pahuang/work/zanata-spa/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:227:5)
- at DestroyableTransform.Writable.write (/home/pahuang/work/zanata-spa/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:194:11)
- at write (/home/pahuang/work/zanata-spa/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js:623:24)
- at flow (/home/pahuang/work/zanata-spa/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js:632:7)
- at DestroyableTransform.pipeOnReadable (/home/pahuang/work/zanata-spa/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js:664:5)
- at DestroyableTransform.emit (events.js:92:17)
- at emitReadable_ (/home/pahuang/work/zanata-spa/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js:448:10)
- at emitReadable (/home/pahuang/work/zanata-spa/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js:444:5)
- at readableAddChunk (/home/pahuang/work/zanata-spa/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js:187:9)
- at DestroyableTransform.Readable.push (/home/pahuang/work/zanata-spa/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js:149:10)
- at DestroyableTransform.Transform.push (/home/pahuang/work/zanata-spa/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:145:32)
- at afterTransform (/home/pahuang/work/zanata-spa/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:101:12)
- at TransformState.afterTransform (/home/pahuang/work/zanata-spa/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:79:12)
- at /home/pahuang/work/zanata-spa/node_modules/gulp/node_modules/vinyl-fs/lib/src/getContents/bufferFile.js:12:5
- at evalmachine.<anonymous>:271:14
- at /home/pahuang/work/zanata-spa/node_modules/gulp/node_modules/vinyl-fs/node_modules/graceful-fs/graceful-fs.js:102:5
- at Object.oncomplete (evalmachine.<anonymous>:107:15)
- make[1]: *** [watch] Error 8
- make[1]: *** Waiting for unfinished jobs....
- ^Cmake[1]: *** [fakeserver] Error 130
- make: *** [fakewatch] Interrupt
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement