Browse Source

better error message when missing args to script-active-users

Byron Jones 6 years ago
parent
commit
ec84efddc0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      script-active-users

+ 1 - 1
script-active-users

@@ -20,7 +20,7 @@ use LogBot::Util qw( logbot_init );
 # ./script-active-users <network> [minimum event count]
 # 'minimum event count' defaults to 1
 
-my $config = load_config(find_config(shift));
+my $config = load_config(find_config(shift) || die "script-active-users <network> [minimum event count]\n");
 logbot_init(
     $config,
     name  => 'script ',