diff --git a/.config.yaml.kate-swp b/.config.yaml.kate-swp new file mode 100644 index 0000000..bac52e1 Binary files /dev/null and b/.config.yaml.kate-swp differ diff --git a/config.go b/config.go index 56495d3..7c9f824 100644 --- a/config.go +++ b/config.go @@ -48,7 +48,7 @@ func (a *App) ReadConfig() { } else if _, err := os.Stat(etcConfig); err == nil { configFile = etcConfig } else { - log.Fatal("Unable to find a configuration file.") + log.Println("Unable to find a configuration file.") } // Load the configuration file. @@ -68,6 +68,7 @@ func (a *App) ReadConfig() { fig.Dirs(filePath), ) if err != nil { + app.config = config log.Printf("Error parsing configuration: %s\n", err) return } diff --git a/main.go b/main.go index 9fffe56..e32cdc8 100644 --- a/main.go +++ b/main.go @@ -15,7 +15,7 @@ import ( const ( serviceName = "midi-request-trigger" serviceDescription = "Takes trigger MIDI messages by HTTP or MQTT requests and trigger HTTP or MQTT requests by MIDI messages" - serviceVersion = "0.2" + serviceVersion = "0.2.1" ) // App is the global application structure for communicating between servers and storing information.