lib/server.js
// Creates a new error, adding properties to it.
Creates a new error, adding properties to it.
Creates a new error adding properties to it .
function makeError(message, properties) {
    var error = new Error(message);
    for (var property in properties) {
        error[property] = properties[property];
    }
    return error;
}
function makeError ( message , properties ) { var error = new Error ( message ) ; for ( var property in properties ) { error [ property ] = properties [ property ] ; } return error ; }
Creates a new error, adding properties to it.
Creates a new error adding properties to it .