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(
{
err,
newPackageJson,
npmrcContent,
stdout: result.stdout,
stderr: result.stderr,
packageJson: JSON.parse(newPackageJson),
npmrc: npmrcContent,
stdout: String(result.stdout),
stderr: String(result.stderr),
},
'Error generating package-lock.json'
);