changeset 1187:7ea11723da51 draft

made a couple error messages more informative
author epoch <epoch@hacking.allowed.ano>
date Sun, 19 Feb 2017 13:07:13 +0000
parents 98707534e274
children b5fb7fa1b2c6
files contrib/whoisd/whoisd.pl
diffstat 1 files changed, 7 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/contrib/whoisd/whoisd.pl	Wed Jun 01 22:24:29 2016 +0000
+++ b/contrib/whoisd/whoisd.pl	Sun Feb 19 13:07:13 2017 +0000
@@ -37,8 +37,8 @@
  my $AS=$_[0];
  my $user;
  chdir("$RESDB/db/as") || die "%% error";
- if(chdir($AS) || die "%% error") {
-  open(FILE,"owner") || die "%% ASN not found.";
+ if(chdir($AS) || die "%% ASN not found.") {
+  open(FILE,"owner") || die "%% ASN's owner not found.";
   $user=<FILE>;
   close(FILE);
  } else {
@@ -204,7 +204,6 @@
  }
 }
 
-# default to assuming it is a name.
 sub user_lookup {
  printf "%% user section for '%s'\n", $QUERY unless $HACK;
 
@@ -272,8 +271,8 @@
 
 #k. we got user... now to find stuff belonging to that user.
 
-#ASN_lookup($user);
-#IPv4_lookup($user);
-#domain_lookup($user);
-#IPv6_lookup($user);
-user_lookup();
+ASN_lookup($user);
+IPv4_lookup($user);
+domain_lookup($user);
+IPv6_lookup($user);
+#user_lookup();