Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2014
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.81 KB | None | 0 0
  1. /home/pahuang/work/zanata-spa/gulpfile.js:40
  2. notify.notifyError({
  3. ^
  4. TypeError: Object function (options) {
  5. var reporter, notifier;
  6.  
  7. options = options || {};
  8. var templateOptions = options.templateOptions || {};
  9.  
  10. if (options.notifier) {
  11. reporter = options.notifier;
  12. } else {
  13. notifier = new Notification(options);
  14. reporter = notifier.notify.bind(notifier);
  15. }
  16. var lastFile = null;
  17.  
  18. function notify (file, enc, callback) {
  19. var stream = this;
  20.  
  21. report(reporter, file, options, templateOptions, function (err) {
  22. logError(err, stream);
  23.  
  24. if (options.emitError) {
  25. stream.push(file);
  26. return callback();
  27. }
  28. });
  29.  
  30. if (!options.emitError) {
  31. stream.push(file);
  32. return callback();
  33. }
  34. }
  35.  
  36. if (!options.onLast) {
  37. return through.obj(notify);
  38. }
  39.  
  40. // Only send notification on the last file.
  41. return through.obj(function (file, enc, callback) {
  42. lastFile = file;
  43. this.push(file);
  44. callback();
  45. }, function (callback) {
  46. var stream = this;
  47.  
  48. if (!lastFile) {
  49. return callback();
  50. }
  51.  
  52. report(reporter, lastFile, options, templateOptions, function (err) {
  53. logError(err, stream);
  54. if (options.emitError) {
  55. return callback();
  56. }
  57. });
  58.  
  59. lastFile = null; // reset
  60. if (!options.emitError) {
  61. return callback();
  62. }
  63. });
  64.  
  65. function logError (err, stream) {
  66. if (!err) return;
  67.  
  68. var isGrowl = notifier && notifier instanceof Notification.Growl;
  69. var isEcon = err.message.indexOf('ECONNREFUSED') !== -1;
  70. var dropMessage = isGrowl && isEcon;
  71.  
  72. if (dropMessage) {
  73. return extra.logError({
  74. title: 'Info',
  75. message: 'No notification system installed.'
  76. });
  77. }
  78.  
  79. if (options.emitError) return stream.emit('error', err);
  80.  
  81. extra.logError({
  82. title: "Error in notifier",
  83. message: err
  84. }, true);
  85. }
  86. } has no method 'notifyError'
  87. at Transform.notifyError [as errorHandler] (/home/pahuang/work/zanata-spa/gulpfile.js:40:10)
  88. at Transform.emit (events.js:117:20)
  89. at Transform._transform (/home/pahuang/work/zanata-spa/node_modules/gulp-rework/index.js:30:9)
  90. 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)
  91. 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)
  92. at doWrite (/home/pahuang/work/zanata-spa/node_modules/gulp-rework/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:237:10)
  93. at writeOrBuffer (/home/pahuang/work/zanata-spa/node_modules/gulp-rework/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:227:5)
  94. 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)
  95. at write (/home/pahuang/work/zanata-spa/node_modules/gulp-plumber/node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js:623:24)
  96. at flow (/home/pahuang/work/zanata-spa/node_modules/gulp-plumber/node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js:632:7)
  97. 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)
  98. at DestroyableTransform.emit (events.js:117:20)
  99. at emitReadable_ (/home/pahuang/work/zanata-spa/node_modules/gulp-plumber/node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js:448:10)
  100. at emitReadable (/home/pahuang/work/zanata-spa/node_modules/gulp-plumber/node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js:444:5)
  101. at readableAddChunk (/home/pahuang/work/zanata-spa/node_modules/gulp-plumber/node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js:187:9)
  102. 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)
  103. 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)
  104. at afterTransform (/home/pahuang/work/zanata-spa/node_modules/gulp-plumber/node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:101:12)
  105. 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)
  106. at DestroyableTransform.noop [as _transform] (/home/pahuang/work/zanata-spa/node_modules/gulp-plumber/node_modules/through2/through2.js:26:3)
  107. 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)
  108. 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)
  109. at doWrite (/home/pahuang/work/zanata-spa/node_modules/gulp-plumber/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:237:10)
  110. at writeOrBuffer (/home/pahuang/work/zanata-spa/node_modules/gulp-plumber/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:227:5)
  111. 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)
  112. 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)
  113. 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)
  114. 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)
  115. at DestroyableTransform.emit (events.js:92:17)
  116. 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)
  117. 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)
  118. 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)
  119. 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)
  120. 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)
  121. 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)
  122. 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)
  123. at DestroyableTransform.noop [as _transform] (/home/pahuang/work/zanata-spa/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2/through2.js:26:3)
  124. 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)
  125. 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)
  126. 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)
  127. 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)
  128. 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)
  129. 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)
  130. 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)
  131. 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)
  132. at DestroyableTransform.emit (events.js:92:17)
  133. 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)
  134. 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)
  135. 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)
  136. 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)
  137. 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)
  138. 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)
  139. 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)
  140. at /home/pahuang/work/zanata-spa/node_modules/gulp/node_modules/vinyl-fs/lib/src/getContents/bufferFile.js:12:5
  141. at evalmachine.<anonymous>:271:14
  142. at /home/pahuang/work/zanata-spa/node_modules/gulp/node_modules/vinyl-fs/node_modules/graceful-fs/graceful-fs.js:102:5
  143. at Object.oncomplete (evalmachine.<anonymous>:107:15)
  144.  
  145. make[1]: *** [watch] Error 8
  146. make[1]: *** Waiting for unfinished jobs....
  147. ^Cmake[1]: *** [fakeserver] Error 130
  148. make: *** [fakewatch] Interrupt
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement