fix: parse/stringify lockfile error messages (#622)

This commit is contained in:
Rhys Arkins 2017-08-05 06:20:54 +02:00 committed by GitHub
parent a1e1b1770f
commit 6d688412b4

View file

@ -34,10 +34,10 @@ async function generateLockFile(newPackageJson, npmrcContent, logger) {
logger.warn( logger.warn(
{ {
err, err,
newPackageJson, packageJson: JSON.parse(newPackageJson),
npmrcContent, npmrc: npmrcContent,
stdout: result.stdout, stdout: String(result.stdout),
stderr: result.stderr, stderr: String(result.stderr),
}, },
'Error generating package-lock.json' 'Error generating package-lock.json'
); );