Error reporting now works correctly.