diff options
author | Z.J. van de Weg <git@zjvandeweg.nl> | 2016-12-20 20:56:46 +0100 |
---|---|---|
committer | Z.J. van de Weg <git@zjvandeweg.nl> | 2016-12-20 20:57:09 +0100 |
commit | 4a03fae930a58b485ee610ce9e6058a2c2dd3d6e (patch) | |
tree | 418163b6578935b3660de4da67ab0e946f80acf6 /lib/mattermost | |
parent | 0bd8669f3a606479e3f97683e0bfb178856df422 (diff) | |
download | gitlab-ce-4a03fae930a58b485ee610ce9e6058a2c2dd3d6e.tar.gz |
Fix rspec tests due to different API
[ci skip]
Diffstat (limited to 'lib/mattermost')
-rw-r--r-- | lib/mattermost/session.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/mattermost/session.rb b/lib/mattermost/session.rb index 38a71061097..8f14ed306b8 100644 --- a/lib/mattermost/session.rb +++ b/lib/mattermost/session.rb @@ -75,9 +75,9 @@ module Mattermost def get(path, options = {}) self.class.get(path, options.merge(headers: @headers)) rescue HTTParty::Error => e - raise ConnectionError(e.message) + raise Mattermost::ConnectionError.new(e.message) rescue Errno::ECONNREFUSED => e - raise ConnectionError(e.message) + raise Mattermost::ConnectionError.new(e.message) end def post(path, options = {}) |