Skip to content
This repository was archived by the owner on May 18, 2022. It is now read-only.

Commit b91687a

Browse files
committed
Log error condition
1 parent a9a11c6 commit b91687a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

util/wordpress.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,12 @@ function setupTheme(generator, config, done) {
270270
process.chdir(themePath);
271271
console.log(chalk.green('Installing Node Packages (be patient)'));
272272

273-
exec('npm install', function(err) {
273+
exec('npm install', function(err, stdout, stderr) {
274+
if (err) {
275+
console.error('Error installing packages', err, stdout, stderr);
276+
return done();
277+
}
278+
274279
if (fs.existsSync(themeTaskFile)) {
275280
exec(themeTaskCmd + ' setup', function(err) {
276281
console.log(chalk.green('Theme setup!'));

0 commit comments

Comments
 (0)