[pathc] Sys:Syslog.pm::syslog() - Better error message
Jari Aalto [Wed, 6 Aug 2003 14:24:42 +0000 (17:24 +0300)]
Message-ID: <ekzzowp1.fsf@blue.sea.net>

p4raw-id: //depot/perl@20533

ext/Sys/Syslog/Syslog.pm

index 2b283db..1aec33f 100644 (file)
@@ -251,7 +251,8 @@ sub syslog {
     local(@words, $num, $numpri, $numfac, $sum);
     local($facility) = $facility;      # may need to change temporarily.
 
-    croak "syslog: expected both priority and mask" unless $mask && $priority;
+    croak "syslog: expecting argument \$priority" unless $priority;
+    croak "syslog: expecting argument \$format"   unless $mask;
 
     @words = split(/\W+/, $priority, 2);# Allow "level" or "level|facility".
     undef $numpri;