mirror of
https://github.com/speatzle/nfsense.git
synced 2025-05-11 02:48:21 +00:00
Ignore Pending Config not Existing Error
This commit is contained in:
parent
2716507c86
commit
eb3ee9465c
1 changed files with 4 additions and 1 deletions
3
main.go
3
main.go
|
@ -2,6 +2,7 @@ package main
|
|||
|
||||
import (
|
||||
"context"
|
||||
"errors"
|
||||
"flag"
|
||||
"os"
|
||||
"os/signal"
|
||||
|
@ -36,7 +37,9 @@ func main() {
|
|||
|
||||
err = configManager.LoadPendingConfigFromDisk()
|
||||
if err != nil {
|
||||
if !errors.Is(err, os.ErrNotExist) {
|
||||
slog.Error("Loading Pending Config", err)
|
||||
}
|
||||
err = configManager.DiscardPendingConfig()
|
||||
if err != nil {
|
||||
slog.Error("Discarding Pending Config", err)
|
||||
|
|
Loading…
Add table
Reference in a new issue