Report question

Question: Is there a better way to do C style error handling?