We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7440f6d commit 4287660Copy full SHA for 4287660
lib/versioned/^4.0.0/log/events.js
@@ -8,6 +8,8 @@ var formatError = require('../formatError');
8
// Wire up logging events
9
function logEvents(gulpInst) {
10
11
+ var loggedErrors = [];
12
+
13
gulpInst.on('start', function(e) {
14
// TODO: batch these
15
// so when 5 tasks start at once it only logs one time with all 5
@@ -30,7 +32,12 @@ function logEvents(gulpInst) {
30
32
chalk.red('errored after'),
31
33
chalk.magenta(time)
34
);
- log.error(msg);
35
36
+ // If we haven't logged this before, log it and add to list
37
+ if (loggedErrors.indexOf(e.error) === -1) {
38
+ log.error(msg);
39
+ loggedErrors.push(e.error);
40
+ }
41
});
42
}
43
0 commit comments