mirror of
https://github.com/DeterminateSystems/magic-nix-cache-action.git
synced 2024-12-23 05:22:07 +01:00
Make main error check more strict
This commit is contained in:
parent
60141574d0
commit
7286978530
3 changed files with 3 additions and 3 deletions
2
dist/index.js
generated
vendored
2
dist/index.js
generated
vendored
|
@ -95534,7 +95534,7 @@ var MagicNixCacheAction = class extends DetSysAction {
|
||||||
await this.notifyAutoCache();
|
await this.notifyAutoCache();
|
||||||
}
|
}
|
||||||
async post() {
|
async post() {
|
||||||
if (!this.strictMode && this.mainError) {
|
if (!this.strictMode && this.mainError !== void 0) {
|
||||||
this.exitWithWarning(this.mainError);
|
this.exitWithWarning(this.mainError);
|
||||||
}
|
}
|
||||||
if (this.noopMode) {
|
if (this.noopMode) {
|
||||||
|
|
2
dist/index.js.map
generated
vendored
2
dist/index.js.map
generated
vendored
File diff suppressed because one or more lines are too long
|
@ -109,7 +109,7 @@ class MagicNixCacheAction extends DetSysAction {
|
||||||
async post(): Promise<void> {
|
async post(): Promise<void> {
|
||||||
// If strict mode is off and there was an error in main, such as the daemon not starting,
|
// If strict mode is off and there was an error in main, such as the daemon not starting,
|
||||||
// then the post phase is skipped with a warning.
|
// then the post phase is skipped with a warning.
|
||||||
if (!this.strictMode && this.mainError) {
|
if (!this.strictMode && this.mainError !== undefined) {
|
||||||
this.exitWithWarning(this.mainError);
|
this.exitWithWarning(this.mainError);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue