Make main error check more strict

This commit is contained in:
Luc Perkins 2024-06-03 16:14:11 -07:00
parent 60141574d0
commit 7286978530
No known key found for this signature in database
GPG key ID: 16DB1108FB591835
3 changed files with 3 additions and 3 deletions

2
dist/index.js generated vendored
View file

@ -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

File diff suppressed because one or more lines are too long

View file

@ -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);
}