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")
|
||||
if err != nil {
|
||||
slog.Error("Loading Config", err)
|
||||
return
|
||||
os.Exit(1)
|
||||
}
|
||||
|
||||
slog.Info("Config Loaded", "config", conf)
|
||||
|
@ -31,7 +31,7 @@ func main() {
|
|||
err := apply(conf)
|
||||
if err != nil {
|
||||
slog.Error("Applying Config", err)
|
||||
return
|
||||
os.Exit(1)
|
||||
}
|
||||
slog.Info("Config Applied, Exiting...")
|
||||
return
|
||||
|
|
Loading…
Add table
Reference in a new issue