Skip to content

Commit a66a004

Browse files
07souravkundafrancisf
authored andcommitted
fix reject statement
1 parent 50f42d0 commit a66a004

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/helpers/packageInstaller.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ const packageInstall = (packageDir) => {
7070
};
7171
const nodeProcessErrorCallback = (error) => {
7272
logger.error(`Some error occurred while installing packages: %j`, error);
73-
reject(`Packages were not installed successfully. Error Description %j`, error);
73+
reject(`Packages were not installed successfully. Error Description ${util.format('%j', error)}`);
7474
};
7575
nodeProcess = spawn(/^win/.test(process.platform) ? 'npm.cmd' : 'npm', ['install', '--loglevel', 'verbose', '>', '../npm_install_debug.log', '2>&1'], {cwd: packageDir, shell: true});
7676
nodeProcess.on('close', nodeProcessCloseCallback);

0 commit comments

Comments
 (0)