you are catching the error... that's what the "Catch ex As Exception" is.... that's your catch. Before you return, that's where you should be logging the error at.

OH, I see what you posted now... in that case, you have an example of how to catch errors.... it's the "Try...Catch...Finally" syntax.

-tg