Skip to content

Commit

Permalink
chore: show more information of error in install-npm
Browse files Browse the repository at this point in the history
  • Loading branch information
rerorero committed Mar 14, 2023
1 parent 25b1c64 commit d3927ba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion install-npm.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
*/

const B = require('bluebird');
const util = require('util')

// this is here because we're using async/await, and this must be set _before_ we use async/await,
// given that bluebird is used elsewhere via `doInstall()`.
Expand Down Expand Up @@ -37,7 +38,7 @@ async function main() {
try {
await exec(npmCommand, ['run', 'build'], {logger: log, cwd: __dirname});
} catch (e) {
throw new Error(`appium-chromedriver package cannot be built: ${e.stderr || e.message}`);
throw new Error(`appium-chromedriver package cannot be built: ${util.inspect(e)}`);
}
}

Expand Down

0 comments on commit d3927ba

Please sign in to comment.