messagingfw/msgtestfw/TestActions/Base/src/CMtfTestActionInsertMedia.cpp
changeset 58 6c34d0baa0b1
parent 0 8e480a14352b
--- a/messagingfw/msgtestfw/TestActions/Base/src/CMtfTestActionInsertMedia.cpp	Tue Oct 05 13:50:47 2010 +0530
+++ b/messagingfw/msgtestfw/TestActions/Base/src/CMtfTestActionInsertMedia.cpp	Tue Oct 19 11:59:06 2010 +0530
@@ -66,7 +66,8 @@
 	
 	TInt drive = ObtainValueParameterL<TInt>(TestCase(),ActionParameters().Parameter(0));
 
-	fs.Connect();
+	TInt err = fs.Connect();
+	User::LeaveIfError(err);
 	server.Connect(fs);
 
 	// This tells the server to pretend that its media is missing next time it gets a disk notification