From 94fef7307ebcf0d2715d6c9d2273abd8aa759e71 Mon Sep 17 00:00:00 2001 From: James Muehlner Date: Mon, 9 Dec 2013 20:50:07 -0800 Subject: [PATCH] Ticket #362: Cleaned up even morely. --- .../net/basic/rest/connection/ConnectionRESTService.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/guacamole/src/main/java/org/glyptodon/guacamole/net/basic/rest/connection/ConnectionRESTService.java b/guacamole/src/main/java/org/glyptodon/guacamole/net/basic/rest/connection/ConnectionRESTService.java index 05228b178..8930261a3 100644 --- a/guacamole/src/main/java/org/glyptodon/guacamole/net/basic/rest/connection/ConnectionRESTService.java +++ b/guacamole/src/main/java/org/glyptodon/guacamole/net/basic/rest/connection/ConnectionRESTService.java @@ -97,7 +97,7 @@ public class ConnectionRESTService { } if(parentConnectionGroup == null) - throw new HTTPException(Status.NOT_FOUND, "No Connection found with the provided parentID."); + throw new HTTPException(Status.NOT_FOUND, "No ConnectionGroup found with the provided parentID."); Directory connectionDirectory = parentConnectionGroup.getConnectionDirectory(); @@ -145,7 +145,7 @@ public class ConnectionRESTService { Connection connection = connectionDirectory.get(connectionID); if(connection == null) - throw new HTTPException(Status.NOT_FOUND, "No Connection found with the provided parentID."); + throw new HTTPException(Status.NOT_FOUND, "No Connection found with the provided ID."); return new APIConnection(connection); } catch(GuacamoleSecurityException e) { @@ -225,7 +225,7 @@ public class ConnectionRESTService { } if(parentConnectionGroup == null) - throw new HTTPException(Status.NOT_FOUND, "No Connection found with the provided parentID."); + throw new HTTPException(Status.NOT_FOUND, "No ConnectionGroup found with the provided parentID."); Directory connectionDirectory = parentConnectionGroup.getConnectionDirectory(); @@ -310,7 +310,7 @@ public class ConnectionRESTService { ConnectionGroup parentConnectionGroup = connectionGroupDirectory.get(parentID); if(parentConnectionGroup == null) - throw new HTTPException(Status.NOT_FOUND, "No Connection found with the provided parentID."); + throw new HTTPException(Status.NOT_FOUND, "No ConnectionGroup found with the provided parentID."); // Move the connection connectionDirectory.move(connectionID, parentConnectionGroup.getConnectionDirectory());