Permalink
Browse files

Adding unhandled errors to both helo and ehlo commands.

  • Loading branch information...
1 parent e37deb0 commit 8c1b9c6926bea20e0ca4b4124e333cf9a27a580f @miksago miksago committed Jan 15, 2010
Showing with 6 additions and 0 deletions.
  1. +6 −0 lib/smtp/client.js
View
@@ -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;
}
});
};

0 comments on commit 8c1b9c6

Please sign in to comment.