bin/pvl.hosts-reverse
changeset 670 b95ad8c8bb4e
parent 519 fa2fd79fe205
child 735 008cfe47b194
--- a/bin/pvl.hosts-reverse	Sun Mar 01 22:39:05 2015 +0200
+++ b/bin/pvl.hosts-reverse	Sun Mar 01 23:16:18 2015 +0200
@@ -46,8 +46,12 @@
         else:
             log.info("using given hosts path %s for reverse --zone-prefix: %s", zone_prefix, prefix)
 
+    elif args:
+        log.fatal("--zone-prefix is required if passing multiple hosts files")
+        return 1
+
     else:
-        log.fatal("--zone-prefix is required if passing multiple hosts files")
+        log.fatal("no hosts given as input")
         return 1
  
     if options.unknown_host and not options.hosts_domain: