Browse Source

Specify that it's Slack's credentials that are invalid

master
Dylan Baker 4 years ago
parent
commit
5af2719efd
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      lib/slack_mattermost_emoji/slack_client.rb
  2. 1
    1
      spec/slack_client_spec.rb

+ 1
- 1
lib/slack_mattermost_emoji/slack_client.rb View File

@@ -32,7 +32,7 @@ module SlackMattermostEmoji
32 32
 
33 33
       begin
34 34
         @driver.find_element(css: 'p.alert.alert_error')
35
-        raise 'Invalid credentials'
35
+        raise 'Invalid Slack credentials'
36 36
       rescue Selenium::WebDriver::Error::NoSuchElementError
37 37
         nil
38 38
       end

+ 1
- 1
spec/slack_client_spec.rb View File

@@ -31,7 +31,7 @@ RSpec.describe SlackMattermostEmoji::SlackClient do
31 31
       domain: ENV['SLACK_DOMAIN'],
32 32
       log: false,
33 33
     )
34
-    expect { client.authenticate }.to raise_error('Invalid credentials')
34
+    expect { client.authenticate }.to raise_error('Invalid Slack credentials')
35 35
   end
36 36
 
37 37
   it 'should download emojis from slack' do

Loading…
Cancel
Save