raise error when no dir