Repository: camel Updated Branches: refs/heads/master fd7852b1c -> 90535ba80
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/90535ba8 Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/90535ba8 Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/90535ba8 Branch: refs/heads/master Commit: 90535ba809dde19da37d061ceb9e7035cb1fc932 Parents: fd7852b 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:01:18 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/90535ba8/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);