Include original error in log messages

This commit is contained in:
Daz DeBoer 2021-12-08 14:44:57 -07:00
parent f344e25b84
commit 887e1a09ab
No known key found for this signature in database
GPG Key ID: DD6B9F0B06683D5D
5 changed files with 6 additions and 6 deletions

2
dist/main/index.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

2
dist/post/index.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -46,9 +46,9 @@ export function handleCacheFailure(error: unknown, message: string): void {
if (error instanceof cache.ReserveCacheError) {
// Reserve cache errors are expected if the artifact has been previously cached
if (isCacheDebuggingEnabled()) {
core.info(message)
core.info(`${message}: ${error}`)
} else {
core.debug(message)
core.debug(`${message}: ${error}`)
}
} else {
// Warn on all other errors