Commit 87ab4acf authored by Lukas Burgey's avatar Lukas Burgey
Browse files

Fix error reporting

parent a942a523
...@@ -23,7 +23,7 @@ var ( ...@@ -23,7 +23,7 @@ var (
).Author( ).Author(
"Lukas Burgey", "Lukas Burgey",
).Version( ).Version(
"v2.1.0", "v2.1.1",
) )
cmdStart = app.Command("start", "Starts the client in its normal operation mode.").Default() cmdStart = app.Command("start", "Starts the client in its normal operation mode.").Default()
cmdDeregister = app.Command("deregister", "Before disabling the client: Use deregister to inform the backend that the client ceases operation.") cmdDeregister = app.Command("deregister", "Before disabling the client: Use deregister to inform the backend that the client ceases operation.")
...@@ -169,7 +169,7 @@ func main() { ...@@ -169,7 +169,7 @@ func main() {
switch cmd { switch cmd {
case "start": case "start":
// sync the config with the backend // sync the config with the backend
if conf.Sync() != nil { if err := conf.Sync(); err != nil {
log.Printf("[Conf] Error synchronizing configuration: %s", err) log.Printf("[Conf] Error synchronizing configuration: %s", err)
return return
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment