Error reporting

Add error reporting line for debugging.