verbose error message on assert is_package