lib/virgilio-http.js
function restifyHandler(handler, req, res, next) {
        Promise.method(handler).call(this, req, res)
            .then(function(result) {
                next(result);
            })
            .catch(function(error) {
                //FIXME ensure error is an error instance.
                next(error);
            });
    }
function restifyHandler(handler, req, res, next) {
        Promise.method(handler).call(this, req, res)
            .then(function(result) {
                next(result);
            })
            .catch(function(error) {
                //FIXME ensure error is an error instance.
                next(error);
            });
    }
function restifyHandler ( handler , req , res , next ) { Promise . method ( handler ) . call ( this , req , res ) . then ( function ( result ) { next ( result ) ; } ) . catch ( function ( error ) { //FIXME ensure error is an error instance. next ( error ) ; } ) ; }
The `restifyHandler` will be registered with the restify server, after partially applying the `handler` arg.
The restifyHandler will be registered with the restify server after partially applying the handler arg .