Skip to content

Commit

Permalink
Merge pull request #51 from treasure-data/fix_checking_credentials
Browse files Browse the repository at this point in the history
Fix checking credentials
  • Loading branch information
thangnc committed Nov 17, 2017
2 parents 096dea7 + 373849d commit c8a8b99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/embulk/input/jira_api/client.rb
Expand Up @@ -41,7 +41,7 @@ def total_count(jql)
end

def check_user_credential(username)
Jiralicious::Issue.find(username)
Jiralicious::User.search(username)
rescue Jiralicious::JqlError, Jiralicious::AuthenticationError, Jiralicious::NotLoggedIn, Jiralicious::InvalidLogin => e
raise Embulk::ConfigError.new(e.message)
rescue ::SocketError => e
Expand Down

0 comments on commit c8a8b99

Please sign in to comment.