-
Notifications
You must be signed in to change notification settings - Fork 2k
fix(gulp): unhandled error (not printed for the user) #1261
Conversation
LGTM. |
@@ -327,6 +327,7 @@ gulp.task('protractor', ['webdriver_update'], function () { | |||
process.exit(0); | |||
}) | |||
.on('error', function(err) { | |||
console.log(err); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.error maybe? Also, why don't we put the E2E failing above it to give some context.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we use consistently console.log()
on gulp/grunt. Should I change all of them to .error
for consistency?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If it's an error, then yeah I think it makes sense.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cool, I'll update.
e40fcf0
to
5a6d954
Compare
@ilanbiala updated .error() related statements. |
@@ -327,7 +327,8 @@ gulp.task('protractor', ['webdriver_update'], function () { | |||
process.exit(0); | |||
}) | |||
.on('error', function(err) { | |||
console.log('E2E Tests failed'); | |||
console.error(err); | |||
console.error('E2E Tests failed'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be above the error to give context.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lirantal can you reorder these two statements before you merge?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure, in this case I'll add a colon to the E2E Tests failed text
too to make it clear
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah sounds good.
Reran the build, hopefully it passes. |
Obviously the build doesn't fail due to the |
Yeah, weird that Node 5 passes though...@mleanos @trendzetter @codydaig any ideas? |
I first saw this issue last night when I submitted a PR. I've been looking into it for a couple hours. I went through one of the failed builds log, and compared it to a recent successful build we had. I was looking for differences in the packages installed, and any variations in the Travis environment. I couldn't find any differences that are relevant. Now I'm getting the same exact error with both I'll start looking at the protractor project issues. |
Are you getting a |
Seems to be an issue with Mongoose |
Let's see if the builds succeed in #1264 |
Re-ran the build since I merged in #1264 |
Ok so I'm merging this one but for #1264 we need to investigate it further. |
@lirantal LGTM except one change that I would suggest that we reorder. |
5a6d954
to
6e9dc4c
Compare
updated re-ordering. |
LGTM. So the idea is to start using |
No, not through-out the framework, just in gulpfile.js. On Mon, Mar 14, 2016 at 8:57 AM, Michael Leanos notifications@github.com
Sincerely, Liran Tal Author |
LGTM. |
LGTM |
@lirantal please rebase and the build should still pass barring any ESLint issues. |
I WILL NOT REBASE!!! |
RE-BRACE yo-self foo! |
whaaaaat? who you calling a foo?! |
…or related console.log() to console.error()
6e9dc4c
to
b4c9464
Compare
LGTM |
LGTM. |
fix(gulp): unhandled error (not printed for the user)
gulpfile.js
had an handled error, or more precisely handled but the actual error wasn't printed to the screen.