return the error when listing the packages is false