1
0
Fork 0
mirror of https://github.com/actions/setup-java synced 2024-12-22 21:22:41 +00:00

strringify the logs

This commit is contained in:
Bryan Clark 2019-12-05 00:48:15 -05:00
parent 2b05c00514
commit 948db7588e
2 changed files with 2 additions and 2 deletions

2
dist/index.js generated vendored
View file

@ -4175,7 +4175,7 @@ function write(directory, settings) {
// default flag is 'w'
return fs.writeFileSync(location, settings, { encoding: 'utf-8' });
}
console.log(`code ${e.code} and O_EXCL ${fs.constants.O_EXCL}`);
console.log(`error ${JSON.stringify(e)} and O_EXCL ${fs.constants.O_EXCL}`);
throw e;
}
});

View file

@ -55,7 +55,7 @@ async function write(directory: string, settings: string) {
// default flag is 'w'
return fs.writeFileSync(location, settings, {encoding: 'utf-8'});
}
console.log(`code ${e.code} and O_EXCL ${fs.constants.O_EXCL}`);
console.log(`error ${JSON.stringify(e)} and O_EXCL ${fs.constants.O_EXCL}`);
throw e;
}
}