error_function.c updated