Log stack trace for cache errors

This commit is contained in:
Daz DeBoer 2022-03-18 13:53:28 -06:00
parent f1d0d15603
commit 0d13054264
No known key found for this signature in database
GPG Key ID: DD6B9F0B06683D5D
5 changed files with 7 additions and 4 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

@ -103,6 +103,9 @@ export function handleCacheFailure(error: unknown, message: string): void {
} else {
// Warn on all other errors
core.warning(`${message}: ${error}`)
if (error instanceof Error && error.stack) {
cacheDebug(error.stack)
}
}
}