Log stack trace for cache errors

This commit is contained in:
Daz DeBoer committed 2022-03-18 13:56:40 -06:00
1 parent f1d0d15603
commit 0d13054264
5 files changed
+7 -4

No files matched your search

+3
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)
}
}
}