What could the possible reasons that I encounter an error when i execute "iFsSession.CreatePrivatePath(EDriveC);" on my device?

It is working okay on my emulator.

Btw, I am unable to perform on-device debugging, thus I inserted a LeaveIfError code, and it indeed closes my application but I am unable to find out the exact error code.

Is there some way for me to log this down? I'm new to symbian. But most importantly, why is it that I can't create a private path?