mirror of
https://github.com/Swatinem/rust-cache
synced 2026-01-05 19:32:45 +00:00
Improve errors and cleanup
- Silence errors and do not create error annotations, fixes #144 - Implement cleanup for new sparse registry - Do not clean `-sys` dependencies from `registry/src`, hopefully fixes #150
This commit is contained in:
parent
e97a782690
commit
f6987ea139
7 changed files with 213 additions and 56 deletions
|
|
@ -2,7 +2,7 @@ import * as core from "@actions/core";
|
|||
|
||||
import { cleanTargetDir } from "./cleanup";
|
||||
import { CacheConfig } from "./config";
|
||||
import { getCacheHandler } from "./utils";
|
||||
import { getCacheHandler, reportError } from "./utils";
|
||||
|
||||
process.on("uncaughtException", (e) => {
|
||||
core.error(e.message);
|
||||
|
|
@ -62,7 +62,7 @@ async function run() {
|
|||
} catch (e) {
|
||||
setCacheHitOutput(false);
|
||||
|
||||
core.error(`${(e as any).stack}`);
|
||||
reportError(e);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue