mirror of
https://github.com/speatzle/nfsense.git
synced 2025-05-10 18:38:22 +00:00
Add Exit Status
This commit is contained in:
parent
a3746e6082
commit
d604ba1074
1 changed files with 2 additions and 2 deletions
|
@ -21,7 +21,7 @@ func main() {
|
||||||
conf, err := LoadConfiguration("config.json")
|
conf, err := LoadConfiguration("config.json")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
slog.Error("Loading Config", err)
|
slog.Error("Loading Config", err)
|
||||||
return
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
|
|
||||||
slog.Info("Config Loaded", "config", conf)
|
slog.Info("Config Loaded", "config", conf)
|
||||||
|
@ -31,7 +31,7 @@ func main() {
|
||||||
err := apply(conf)
|
err := apply(conf)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
slog.Error("Applying Config", err)
|
slog.Error("Applying Config", err)
|
||||||
return
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
slog.Info("Config Applied, Exiting...")
|
slog.Info("Config Applied, Exiting...")
|
||||||
return
|
return
|
||||||
|
|
Loading…
Add table
Reference in a new issue