Skip to content

Commit

Permalink
Log stack trace for cache errors
Browse files Browse the repository at this point in the history
  • Loading branch information
bigdaz committed Mar 18, 2022
1 parent f1d0d15 commit 0d13054
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dist/main/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/main/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/post/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/post/index.js.map

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions src/cache-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
}

Expand Down

0 comments on commit 0d13054

Please sign in to comment.