Fix function typo in set_error_level