Skip to content

Commit

Permalink
Remove StackTrace print from AddSourcesView
Browse files Browse the repository at this point in the history
  • Loading branch information
JLLeitschuh committed Dec 8, 2015
1 parent 632ce29 commit f97b9fa
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public Throwable getThrowable() {
return throwable;
}

public String getMessage(){
public String getMessage() {
return message;
}

Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#Fri Nov 20 19:04:57 EST 2015
#Tue Dec 08 15:02:34 EST 2015
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
Expand Down
13 changes: 9 additions & 4 deletions ui/src/main/java/edu/wpi/grip/ui/ExceptionAlert.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ public final class ExceptionAlert extends Alert {

private final String exceptionMessage;
private final String systemInfoMessage;
private final String additionalInfoMessage;
private final String message;
private final Throwable initialCause;

Expand All @@ -71,6 +72,7 @@ public ExceptionAlert(final Parent root, final Throwable throwable, final String

this.exceptionMessage = generateExceptionMessage(throwable);
this.systemInfoMessage = generateSystemInfoMessage();
this.additionalInfoMessage = generateAdditionalInfoMessage();
this.initialCause = getInitialCause(throwable);

this.setTitle(initialCause.getClass().getSimpleName());
Expand Down Expand Up @@ -162,7 +164,7 @@ private Throwable getInitialCause(Throwable throwable) {
}
}

private String getAdditionalInfoMessage() {
private String generateAdditionalInfoMessage() {
return "Message: " + message + "\n";
}

Expand Down Expand Up @@ -199,9 +201,12 @@ private String generateSystemInfoMessage() {
* @return The fully constructed issue text.
*/
private String issueText() {
final StringBuilder builder = new StringBuilder(ISSUE_PROMPT_QUESTION).append("\n\n\n\n")
.append(getAdditionalInfoMessage()).append("\n").append(systemInfoMessage).append(exceptionMessage);
return builder.toString();
return ISSUE_PROMPT_QUESTION
+ "\n\n\n\n"
+ additionalInfoMessage
+ "\n"
+ systemInfoMessage
+ exceptionMessage;
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ public AddSourceView(EventBus eventBus) {
eventBus.post(new SourceAddedEvent(source));
} catch (IOException e) {
eventBus.post(new UnexpectedThrowableEvent(e, "Tried to create an invalid source"));
e.printStackTrace();
}
});
});
Expand Down

0 comments on commit f97b9fa

Please sign in to comment.