Skip to content
This repository has been archived by the owner on Jul 28, 2023. It is now read-only.

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
davco01a committed May 12, 2020
1 parent 5689440 commit 3410ff7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/kabasec/Login.java
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public Properties login(Properties args) {
// Encountered an error requesting, parsing, or processing GitHub data for user
if (e.getMessage().contains("Encountered an error requesting, parsing, or processing GitHub data for user") || e.getMessage().contains("An error occurred during authentication for user Unexpected char")) {
msg = "login failed, you may want to check your authorization configuration. Double check the apiUrl: in your github: configuraton in the Kabanero CR Instance to make sure it's correct";
System.out.println(returnError(500, "An error occurred during authentication for user, double check the apiUrl: in your github: configuraton in the Kabanero CR Instance to make sure it's correct", e));
System.out.println("An error occurred during authentication for user, double check the apiUrl: in your github: configuraton in the Kabanero CR Instance to make sure it's correct, exception message: "+ e.getMessage());
Properties p = new Properties();
p.put("message", msg);
return p;
Expand All @@ -108,12 +108,12 @@ public Properties login(Properties args) {
} catch (Exception e) {
if (e.getMessage().contains("could not parse exception response") || e.getMessage().contains("An error occurred during authentication for user Unexpected char") || e.getMessage().contains("Unexpected char 60 at (line no=1, column no=1, offset=0")) {
msg = "login failed, you may want to check your authorization configuration. Double check the apiUrl: in your github: configuraton in the Kabanero CR Instance to make sure it's correct";
System.out.println(returnError(500, "An error occurred during authentication for user, double check the apiUrl: in your github: configuraton in the Kabanero CR Instance to make sure it's correct", e));
System.out.println("An error occurred during authentication for user, double check the apiUrl: in your github: configuraton in the Kabanero CR Instance to make sure it's correct, exception message: "+e.getMessage());
Properties p = new Properties();
p.put("message", msg);
return p;
} else {
System.out.println(returnError(500, "An error occurred during authentication for user", e));
System.out.println("An error occurred during authentication for user, exception message: "+e.getMessage());
}
Properties p = new Properties();
p.put("message", msg);
Expand Down

0 comments on commit 3410ff7

Please sign in to comment.