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
Branches
Tags
No related merge requests found
......@@ -62,7 +62,7 @@ class client
if(!port)
port = 25;
if(!connect(server, port))
if(!server || !connect(server, port))
{
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