Skip to content

Commit 95cc8b9

Browse files
committed
Added additional error notify events
1 parent b964962 commit 95cc8b9

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/ServiceStackIDEA/src/main/java/net/servicestack/idea/AddServiceStackRefHandler.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,12 @@ private static List<String> getDtoLines(String addressUrl, String qualifiedPacka
108108
} catch (IOException e) {
109109
e.printStackTrace();
110110
errorMessage.append(e.getClass().getName()).append(" - Failed to read response - ").append(addressUrl);
111+
Notification notification = new Notification(
112+
"ServiceStackIDEA",
113+
"Add ServiceStack Reference failed to read response",
114+
errorMessage.toString() + "\n" + e.getMessage(),
115+
NotificationType.ERROR);
116+
Notifications.Bus.notify(notification);
111117
return null;
112118
}
113119
return javaCodeLines;

src/ServiceStackIDEA/src/main/java/net/servicestack/idea/UpdateServiceStackUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ public static void updateServiceStackReference(PsiFile psiFile) {
130130
Notifications.Bus.notify(notification);
131131
}
132132
} catch (Exception e) {
133-
Notification notification = new Notification("ServiceStackIDEA", "Error Updating Reference", "Invalid BaseUrl provided", NotificationType.ERROR);
133+
Notification notification = new Notification("ServiceStackIDEA", "Error Updating Reference", e.getMessage(), NotificationType.ERROR);
134134
Notifications.Bus.notify(notification);
135135
e.printStackTrace();
136136
}

0 commit comments

Comments
 (0)