Repository: camel
Updated Branches:
  refs/heads/camel-2.17.x ae6993976 -> ecab52ae7


CAMEL-10094: Use meaningful LinkedIn error message for oauth2 auth error


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/ecab52ae
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/ecab52ae
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/ecab52ae

Branch: refs/heads/camel-2.17.x
Commit: ecab52ae72f1b100474a152f831586f8555d9437
Parents: ae69939
Author: Dhiraj Bokde <dhira...@yahoo.com>
Authored: Mon Jul 25 00:00:46 2016 -0700
Committer: Dhiraj Bokde <dhira...@yahoo.com>
Committed: Mon Jul 25 00:02:01 2016 -0700

----------------------------------------------------------------------
 .../camel/component/linkedin/api/LinkedInOAuthRequestFilter.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/ecab52ae/components/camel-linkedin/camel-linkedin-api/src/main/java/org/apache/camel/component/linkedin/api/LinkedInOAuthRequestFilter.java
----------------------------------------------------------------------
diff --git 
a/components/camel-linkedin/camel-linkedin-api/src/main/java/org/apache/camel/component/linkedin/api/LinkedInOAuthRequestFilter.java
 
b/components/camel-linkedin/camel-linkedin-api/src/main/java/org/apache/camel/component/linkedin/api/LinkedInOAuthRequestFilter.java
index a54c21a..d78f095 100644
--- 
a/components/camel-linkedin/camel-linkedin-api/src/main/java/org/apache/camel/component/linkedin/api/LinkedInOAuthRequestFilter.java
+++ 
b/components/camel-linkedin/camel-linkedin-api/src/main/java/org/apache/camel/component/linkedin/api/LinkedInOAuthRequestFilter.java
@@ -205,7 +205,7 @@ public final class LinkedInOAuthRequestFilter implements 
ClientRequestFilter {
                 redirectQuery = new URL(location).getQuery();
             }
             if (redirectQuery == null) {
-                throw new IllegalArgumentException("Redirect Query is null 
cannot use it as input");
+                throw new IllegalArgumentException("Redirect response query is 
null, check username, password and permissions");
             }
             final Map<String, String> params = new HashMap<String, String>();
             final Matcher matcher = QUERY_PARAM_PATTERN.matcher(redirectQuery);

Reply via email to