summaryrefslogtreecommitdiffstats
path: root/matterbridge.go
diff options
context:
space:
mode:
authorDuco van Amstel <duco.vanamstel@gmail.com>2018-12-08 16:04:10 +0000
committerWim <wim@42.be>2018-12-08 17:04:10 +0100
commita2754f15fc2bc2eede94e2e41712f9f0585f2426 (patch)
tree52894a30d0ca7a06b90a7b2266fde41a5e8404c5 /matterbridge.go
parentb6d81f34ba7ee88e7a18a27cf4e0aeebaaf82c79 (diff)
downloadmatterbridge-msglm-a2754f15fc2bc2eede94e2e41712f9f0585f2426.tar.gz
matterbridge-msglm-a2754f15fc2bc2eede94e2e41712f9f0585f2426.tar.bz2
matterbridge-msglm-a2754f15fc2bc2eede94e2e41712f9f0585f2426.zip
Enable errcheck linter (#646)
Diffstat (limited to 'matterbridge.go')
-rw-r--r--matterbridge.go7
1 files changed, 5 insertions, 2 deletions
diff --git a/matterbridge.go b/matterbridge.go
index de63c905..e713fb0b 100644
--- a/matterbridge.go
+++ b/matterbridge.go
@@ -28,8 +28,11 @@ func main() {
flagGops := flag.Bool("gops", false, "enable gops agent")
flag.Parse()
if *flagGops {
- agent.Listen(agent.Options{})
- defer agent.Close()
+ if err := agent.Listen(agent.Options{}); err != nil {
+ flog.Errorf("failed to start gops agent: %#v", err)
+ } else {
+ defer agent.Close()
+ }
}
if *flagVersion {
fmt.Printf("version: %s %s\n", version, githash)