Skip to content
Snippets Groups Projects
Commit c93635ac authored by Fredrik Noring's avatar Fredrik Noring
Browse files

Proper backtrace for mail server failure.

Rev: lib/modules/Protocols.pmod/SMTP.pmod:1.7
parent 8784d339
No related branches found
No related tags found
No related merge requests found
...@@ -62,7 +62,7 @@ class client ...@@ -62,7 +62,7 @@ class client
if(!port) if(!port)
port = 25; port = 25;
if(!connect(server, port)) if(!server || !connect(server, port))
{ {
throw(({"Failed to connect to mail server.\n",backtrace()})); throw(({"Failed to connect to mail server.\n",backtrace()}));
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment