mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
tls: throw an error, not string
Reviewed-By: Fedor Indutny <fedor@indutny.com>
This commit is contained in:
committed by
Fedor Indutny
parent
d287b8e58a
commit
bbb2dccd1b
@@ -738,7 +738,7 @@ Server.prototype.setOptions = function(options) {
|
||||
// SNI Contexts High-Level API
|
||||
Server.prototype.addContext = function(servername, context) {
|
||||
if (!servername) {
|
||||
throw 'Servername is required parameter for Server.addContext';
|
||||
throw new Error('Servername is required parameter for Server.addContext');
|
||||
}
|
||||
|
||||
var re = new RegExp('^' +
|
||||
|
||||
Reference in New Issue
Block a user