- domain_path = get_domain_path(domain)
-
- if File.directory?(domain_path)
- # If domain_path isn't a directory, maybe the
- # domain folder doesn't exist? In that case, I
- # guess we want to report zero accounts.
+ begin
+ # Throws a NonexistentDomainError if the domain's path
+ # doesn't exist on the filesystem. In this case, we want
+ # to report zero accounts.
+ domain_path = get_domain_path(domain)