domain_path = get_domain_path(domain)
return domain_path
rescue NonexistentDomainError => e
- return "Doesn't Exist"
+ return "Doesn't exist: #{e.to_s}"
end
end
account_path = get_account_path(account)
return account_path
rescue NonexistentAccountError => e
- return "Doesn't Exist"
+ return "Doesn't exist: #{e.to_s}"
end
end
usernames.each do |username|
accounts << "#{username}@#{domain}"
end
- rescue NonexistentDomainError => e
+ rescue NonexistentDomainError
# Party hard.
end
end
if File.directory?(domain_path)
return domain_path
else
- raise NonexistentDomainError
+ raise NonexistentDomainError.new(domain)
end
end
begin
domain_path = get_domain_path(domain_part)
rescue NonexistentDomainError
- raise NonexistentAccountError
+ raise NonexistentAccountError.new(account)
end
account_path = File.join(domain_path, user_part)
if File.directory?(account_path)
return account_path
else
- raise NonexistentAccountError
+ raise NonexistentAccountError(account)
end
end