Merge commit RCL_2_4
authorEd Swartz <ed.swartz@nokia.com>
Tue, 29 Jun 2010 18:12:58 -0500
branchRCL_2_4
changeset 1561 e855462d0c8d
parent 1560 2b3cd56e1090 (diff)
parent 1555 c030090b5e2a (current diff)
child 1562 5f0fe8ab4e1b
Merge commit
--- a/connectivity/com.nokia.tcf/src/com/nokia/tcf/impl/TCAPIConnection.java	Tue Jun 29 15:23:12 2010 -0500
+++ b/connectivity/com.nokia.tcf/src/com/nokia/tcf/impl/TCAPIConnection.java	Tue Jun 29 18:12:58 2010 -0500
@@ -501,9 +501,13 @@
 				settings = new String[1];
 			} else {
 				// Add other connections here
+				return new Status(Status.ERROR, Activator.PLUGIN_ID, (int)TCErrorConstants.TCAPI_ERR_MEDIA_NOT_SUPPORTED, 
+						"Unknown connection type: " + type, null); 
 			}
+			return finishConnect(type, settings, inConnection, inMessageOptions, inMessageIds);
+		} else {
+			return status;
 		}
-		return finishConnect(type, settings, inConnection, inMessageOptions, inMessageIds);
 	}
 	protected void ensureWritableFile(String filePath) throws IOException {
 		// ensure file path points to a writable regular file