-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #76 from sanniassin/print-yarn-errors
Print yarn's output when it crashes with an error
- Loading branch information
Showing
4 changed files
with
67 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
module.exports = `/usr/local/lib/node_modules/yarn/lib/cli.js:66237 | ||
throw new (_errors || _load_errors()).ResponseError(_this3.reporter.lang('requestFailed', description), res.statusCode); | ||
^ | ||
Error: Request failed "503 Service Unavailable" | ||
at ResponseError.ExtendableBuiltin (/usr/local/lib/node_modules/yarn/lib/cli.js:702:66) | ||
at new ResponseError (/usr/local/lib/node_modules/yarn/lib/cli.js:808:124) | ||
at Request.params.callback [as _callback] (/usr/local/lib/node_modules/yarn/lib/cli.js:66237:19) | ||
at Request.self.callback (/usr/local/lib/node_modules/yarn/lib/cli.js:129397:22) | ||
at Request.emit (events.js:193:13) | ||
at Request.<anonymous> (/usr/local/lib/node_modules/yarn/lib/cli.js:130369:10) | ||
at Request.emit (events.js:193:13) | ||
at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/yarn/lib/cli.js:130291:12) | ||
at Object.onceWrapper (events.js:281:20) | ||
at IncomingMessage.emit (events.js:198:15) | ||
Exiting...`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/usr/bin/env node | ||
const path = require('path'); | ||
|
||
const errorMessagePath = path.resolve(__dirname, 'error-message'); | ||
const errorMessage = require(errorMessagePath); //eslint-disable-line | ||
|
||
console.error(errorMessage); | ||
process.exitCode = 1; |