return the error when listing the packages is false
return the error when listing the packages is false

Merge remote-tracking branch 'origin/pr/691' into develop

* origin/pr/691:
  return the error when listing the packages is false