projects
/
manu
/
smtpt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f004e48
)
Fix error printing
author
Julien Danjou
<julien@danjou.info>
Tue, 10 Aug 2010 14:27:04 +0000
(16:27 +0200)
committer
Emmanuel Lacour
<elacour@easter-eggs.com>
Tue, 10 Aug 2010 15:43:05 +0000
(17:43 +0200)
Signed-off-by: Julien Danjou <julien@danjou.info>
smtpt
patch
|
blob
|
history
diff --git
a/smtpt
b/smtpt
index
f392ca9
..
1781498
100755
(executable)
--- a/
smtpt
+++ b/
smtpt
@@
-103,8
+103,8
@@
X5O!P%@AP[4{DEACTIVATED}\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H
# Close properly smtp connection before exiting on error
sub error {
# Close properly smtp connection before exiting on error
sub error {
- my $mesg =
$@
;
- print STDERR $mesg;
+ my $mesg =
shift
;
+ print STDERR
"E: ",
$mesg;
if ($smtp) {
$smtp->quit();
}
if ($smtp) {
$smtp->quit();
}