summaryrefslogtreecommitdiff
path: root/ext/Sys
diff options
context:
space:
mode:
authorJari Aalto <jari.aalto@poboxes.com>2003-08-06 17:24:42 +0300
committerJarkko Hietaniemi <jhi@iki.fi>2003-08-06 18:39:49 +0000
commit78ac6fa82a1cb8d01c25b723520e44c170ead798 (patch)
treedb014cc0cb0fabc8f481d7fe6226008fc1168383 /ext/Sys
parent324b23145b17e1acc327e170d31ebe7b00858b10 (diff)
downloadperl-78ac6fa82a1cb8d01c25b723520e44c170ead798.tar.gz
[pathc] Sys:Syslog.pm::syslog() - Better error message
Message-ID: <ekzzowp1.fsf@blue.sea.net> p4raw-id: //depot/perl@20533
Diffstat (limited to 'ext/Sys')
-rw-r--r--ext/Sys/Syslog/Syslog.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/Sys/Syslog/Syslog.pm b/ext/Sys/Syslog/Syslog.pm
index 2b283dbc81..1aec33f859 100644
--- a/ext/Sys/Syslog/Syslog.pm
+++ b/ext/Sys/Syslog/Syslog.pm
@@ -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;