fix: fail on error
This commit is contained in:
parent
9c9ccf622a
commit
1edbf6534b
@ -26,9 +26,11 @@ func main() {
|
||||
)
|
||||
|
||||
if *configPath == "-" {
|
||||
log.Print("loading config from stdin")
|
||||
cfg, err = config.Read(os.Stdin)
|
||||
|
||||
} else {
|
||||
log.Print("loading config from ", *configPath)
|
||||
cfg, err = config.Load(*configPath)
|
||||
}
|
||||
|
||||
@ -37,6 +39,8 @@ func main() {
|
||||
}
|
||||
|
||||
if *doFiles {
|
||||
apply.Files(cfg, log)
|
||||
if err = apply.Files(cfg, log); err != nil {
|
||||
log.Fatal("failed to apply files: ", err)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user