Fix error reporting function call.