lib/amee/connection.rb in amee-2.0.28 vs lib/amee/connection.rb in amee-2.0.29

- old
+ new

@@ -141,10 +141,10 @@ post.body = "username=#{@username}&password=#{@password}" post['Accept'] = content_type(:xml) response = @http.request(post) @auth_token = response['authToken'] unless authenticated? - raise AMEE::AuthFailed.new("Authentication failed. Please check your username and password.") + raise AMEE::AuthFailed.new("Authentication failed. Please check your username and password. (tried #{@username},#{@password})") end # Detect API version if response.body.is_json? @version = JSON.parse(response.body)["user"]["apiVersion"].to_f elsif response.body.is_xml?