diff -r df16950e242e -r a581f3c08c9a commands/grabscreen/grabscreen.cpp --- a/commands/grabscreen/grabscreen.cpp Sat Jul 31 21:32:20 2010 +0100 +++ b/commands/grabscreen/grabscreen.cpp Wed Aug 25 21:19:19 2010 +0100 @@ -166,8 +166,8 @@ CleanupStack::PushL(imageData); imageData->iSampleScheme = iGreyscale ? TJpegImageData::EMonochrome : TJpegImageData::EColor444; imageData->iQualityFactor = iQuality; - iFrameImageData = CFrameImageData::NewL(); - User::LeaveIfError(iFrameImageData->AppendImageData(imageData)); + TRAPL(iFrameImageData = CFrameImageData::NewL(), _L("Couldn't create CFrameImageData")); + LeaveIfErr(iFrameImageData->AppendImageData(imageData), _L("Failed to write image data to TJpegImageData")); CleanupStack::Pop(imageData); } else if (aEncodingUid == KImageTypeGIFUid) @@ -225,7 +225,7 @@ void CCmdGrabscreen::RunL() { - User::LeaveIfError(iStatus.Int()); + LeaveIfErr(iStatus.Int(), _L("Error returned from CImageEncoder::Convert")); if (!iArguments.IsPresent(0)) { User::LeaveIfNull(iImageData);