Adding an error_callback argument to the get_catalogs method.