summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
f004e48)
Signed-off-by: Julien Danjou <julien@danjou.info>
# 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();
}