catch_errors() takes PTR argument/func instead of char* argument/func.