Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Adding unhandled errors to both helo and ehlo commands.

  • Loading branch information...
commit 8c1b9c6926bea20e0ca4b4124e333cf9a27a580f 1 parent e37deb0
@miksago miksago authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 lib/smtp/client.js
View
6 lib/smtp/client.js
@@ -107,6 +107,9 @@ Client.prototype.helo = function(){
case "550":
throw SMTPError["550"];
break;
+ default:
+ throw SMTPError["unhandled"];
+ break;
}
});
};
@@ -126,6 +129,9 @@ Client.prototype.ehlo = function(){
case "550":
throw SMTPError["550"];
break;
+ default:
+ throw SMTPError["unhandled"];
+ break;
}
});
};
Please sign in to comment.
Something went wrong with that request. Please try again.