Fully implement local and container MRVA

This commit is contained in:
Nicolas Will
2024-06-17 13:16:24 +02:00
parent ef7552c43f
commit e0cbc01d21
43 changed files with 1700 additions and 1137 deletions

View File

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