Add ERR_put_func_error, and use it.