Fully implement local and container MRVA
This commit is contained in:
@@ -17,15 +17,15 @@ type System struct {
|
||||
|
||||
func LoadConfig(fname string) *System {
|
||||
if _, err := os.Stat(fname); err != nil {
|
||||
slog.Error("Configuration file %s not found", fname)
|
||||
os.Exit(1)
|
||||
slog.Warn("Configuration file not found", "name", fname)
|
||||
return &System{}
|
||||
}
|
||||
|
||||
var config System
|
||||
|
||||
_, err := toml.DecodeFile(fname, &config)
|
||||
if err != nil {
|
||||
slog.Error("", err)
|
||||
slog.Error("Error decoding configuration file", err)
|
||||
os.Exit(1)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user