Skip to content

Commit

Permalink
Quit early if node < 4
Browse files Browse the repository at this point in the history
Summary:
Before we would display this warning at the top and have the packager throw thousands of lines of errors because of es6 syntax.

Before:

<img width="602" alt="screen shot 2016-02-04 at 1 49 27 pm" src="https://cloud.githubusercontent.com/assets/197597/12831357/a72bdc0a-cb48-11e5-9b81-dde895eaf113.png">

After:

<img width="1440" alt="screen shot 2016-02-04 at 2 04 50 pm" src="https://cloud.githubusercontent.com/assets/197597/12831364/af1c16a0-cb48-11e5-949c-c470938f8b49.png">
Closes facebook#5767

Reviewed By: svcscm

Differential Revision: D2902978

Pulled By: androidtrunkagent

fb-gh-sync-id: c0193c3b1e36778d61aa9013f0c294f8c3475442
  • Loading branch information
vjeux authored and facebook-github-bot-5 committed Feb 4, 2016
1 parent aea67c8 commit e1f04bf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions local-cli/server/checkNodeVersion.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,6 @@ module.exports = function() {
marginRight: 1,
paddingBottom: 1,
}));
process.exit(1);
}
};

0 comments on commit e1f04bf

Please sign in to comment.