cryptoservices/filebasedcertificateandkeystores/test/certtool/certtool_remove.cpp
--- a/cryptoservices/filebasedcertificateandkeystores/test/certtool/certtool_remove.cpp Sat Dec 05 21:34:52 2009 +0000
+++ b/cryptoservices/filebasedcertificateandkeystores/test/certtool/certtool_remove.cpp Sat Dec 05 21:41:51 2009 +0000
@@ -79,8 +79,12 @@
break;
case EFinished:
{
- // We are done!
- iController->DisplayLocalisedMsgL(R_CERTTOOL_ERR_REMOVE_SUCCESS);
+
+ User::LeaveIfError(iStatus.Int());
+
+ // We are done!
+ iController->DisplayLocalisedMsgL(R_CERTTOOL_ERR_REMOVE_SUCCESS);
+
CActiveScheduler::Stop();
}
break;
@@ -91,3 +95,24 @@
}
}
+TInt CCertToolRemove::RunError(TInt aError)
+ {
+ CActiveScheduler::Stop();
+
+ switch (aError)
+ {
+ case KErrNotFound :
+ {
+ TRAP_IGNORE(iController->DisplayLocalisedMsgL(R_CERTTOOL_ERR_NOTFOUND));
+ }
+ break;
+ default:
+ {
+ TRAP_IGNORE(iController->DisplayLocalisedMsgL(R_CERTTOOL_ERR_REMOVE_FAILURE, aError));
+ }
+ }
+
+ TRAP_IGNORE(iController->DisplayErrorL(_L("\n"), iParams->iPageWise));
+ return KErrNone;
+ }
+