Skip to content

Commit 707055c

Browse files
authored
Merge pull request #2 from eharris369/dontShowContactingServerErrorDialog
Don't show contacting server error dialog
2 parents 95c7637 + 5754979 commit 707055c

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

dev/com.ibm.microclimate.core/src/com/ibm/microclimate/core/internal/connection/MicroclimateConnection.java

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,6 @@ private static JSONObject getEnvData(URI baseUrl) throws JSONException, IOExcept
143143
envResponse = HttpUtil.get(envUrl).response;
144144
} catch (IOException e) {
145145
MCLogger.logError("Error contacting Environment endpoint", e); //$NON-NLS-1$
146-
MCUtil.openDialog(true, Messages.MicroclimateConnection_ErrContactingServerDialogTitle, Messages.MicroclimateConnection_ErrContactingServerDialogMsg + envUrl);
147146
throw e;
148147
}
149148

@@ -219,9 +218,7 @@ public void refreshApps(String projectID) {
219218
try {
220219
projectsResponse = HttpUtil.get(projectsURL).response;
221220
} catch (IOException e) {
222-
MCLogger.logError("Error contacting Projects endpoint", e);
223-
MCUtil.openDialog(true, Messages.MicroclimateConnection_ErrContactingServerDialogTitle,
224-
NLS.bind(Messages.MicroclimateConnection_ErrContactingServerDialogMsg, projectsURL));
221+
MCLogger.logError("Error contacting Projects endpoint", e); //$NON-NLS-1$
225222
return;
226223
}
227224

@@ -468,7 +465,7 @@ public void requestProjectCreate(ProjectType type, String name)
468465
} else if (type.isType(ProjectType.TYPE_SPRING)) {
469466
requestSpringProjectCreate(name);
470467
} else {
471-
MCLogger.log("Creation of projects with type " + type + " is not supported.");
468+
MCLogger.log("Creation of projects with type " + type + " is not supported."); //$NON-NLS-1$ //$NON-NLS-2$
472469
}
473470
}
474471

0 commit comments

Comments
 (0)