diff options
author | gareth | 2007-05-17 01:11:36 +0000 |
---|---|---|
committer | gareth | 2007-05-17 01:11:36 +0000 |
commit | ab6d1bd5a63693cc1cd8996c912238572e738356 (patch) | |
tree | 99234192f00a4dad8e86cea9782acc19752b4e81 /OpenGridServices.Manager/OpenGridServices.Manager/Main.cs | |
parent | Started Grid Server connection manager (diff) | |
download | opensim-SC-ab6d1bd5a63693cc1cd8996c912238572e738356.zip opensim-SC-ab6d1bd5a63693cc1cd8996c912238572e738356.tar.gz opensim-SC-ab6d1bd5a63693cc1cd8996c912238572e738356.tar.bz2 opensim-SC-ab6d1bd5a63693cc1cd8996c912238572e738356.tar.xz |
Added some exception handling
Diffstat (limited to '')
-rw-r--r-- | OpenGridServices.Manager/OpenGridServices.Manager/Main.cs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/OpenGridServices.Manager/OpenGridServices.Manager/Main.cs b/OpenGridServices.Manager/OpenGridServices.Manager/Main.cs index b14d10b..0e3f74d 100644 --- a/OpenGridServices.Manager/OpenGridServices.Manager/Main.cs +++ b/OpenGridServices.Manager/OpenGridServices.Manager/Main.cs | |||
@@ -39,7 +39,11 @@ namespace OpenGridServices.Manager | |||
39 | switch(cmd) { | 39 | switch(cmd) { |
40 | case "connect_to_gridserver": | 40 | case "connect_to_gridserver": |
41 | win.SetStatus("Connecting to grid server..."); | 41 | win.SetStatus("Connecting to grid server..."); |
42 | gridserverConn.Connect(operation.Split(sep)[1],operation.Split(sep)[2],operation.Split(sep)[3]); | 42 | if(gridserverConn.Connect(operation.Split(sep)[1],operation.Split(sep)[2],operation.Split(sep)[3])) { |
43 | win.SetStatus("Connected OK"); | ||
44 | } else { | ||
45 | win.SetStatus("Could not connect"); | ||
46 | } | ||
43 | break; | 47 | break; |
44 | } | 48 | } |
45 | } | 49 | } |