First of all, it's a good thing that you asked, only a few do care about handling errors.
Unfortunately, the way you choose is frowned upon, in both cases. Luckily, I've got a couple articles that cover your question in every possible detail:
a generalized one, PHP error reportig will show you the right approach for handling errors in general
a direct ...