mirror of
https://github.com/DeterminateSystems/magic-nix-cache-action.git
synced 2024-11-29 10:31:50 +03:00
Make main error check more strict
This commit is contained in:
parent
60141574d0
commit
7286978530
2
dist/index.js
generated
vendored
2
dist/index.js
generated
vendored
@ -95534,7 +95534,7 @@ var MagicNixCacheAction = class extends DetSysAction {
|
||||
await this.notifyAutoCache();
|
||||
}
|
||||
async post() {
|
||||
if (!this.strictMode && this.mainError) {
|
||||
if (!this.strictMode && this.mainError !== void 0) {
|
||||
this.exitWithWarning(this.mainError);
|
||||
}
|
||||
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> {
|
||||
// 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.
|
||||
if (!this.strictMode && this.mainError) {
|
||||
if (!this.strictMode && this.mainError !== undefined) {
|
||||
this.exitWithWarning(this.mainError);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user