summaryrefslogtreecommitdiffstats
path: root/matterclient
diff options
context:
space:
mode:
Diffstat (limited to 'matterclient')
-rw-r--r--matterclient/matterclient.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/matterclient/matterclient.go b/matterclient/matterclient.go
index 75d883f3..7ca7a0b1 100644
--- a/matterclient/matterclient.go
+++ b/matterclient/matterclient.go
@@ -112,7 +112,10 @@ func (m *MMClient) Login() error {
for {
d := b.Duration()
// bogus call to get the serverversion
- m.Client.GetClientProperties()
+ _, err := m.Client.GetClientProperties()
+ if err != nil {
+ return fmt.Errorf("%#v", err.Error())
+ }
if firstConnection && !supportedVersion(m.Client.ServerVersion) {
return fmt.Errorf("unsupported mattermost version: %s", m.Client.ServerVersion)
}