Remove log.Fatal() calls and bubble up errors

This commit is contained in:
Riccardo Biraghi
2018-04-10 13:27:24 +01:00
parent 7c36a9ceea
commit 2397966a86
4 changed files with 22 additions and 9 deletions

View File

@@ -58,7 +58,11 @@ func doMain() error {
// Start signal handler
signalControl := signalHandler(name)
logConfig()
err = logConfig()
if err != nil {
logTermination(err)
return err
}
err = createVolume("/mnt/mqm")
if err != nil {
logTermination(err)