Code coverage report for lib/error.js

Statements: 100% (12 / 12)      Branches: 100% (0 / 0)      Functions: 100% (4 / 4)      Lines: 100% (12 / 12)      Ignored: none     

All files » lib/ » error.js
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 191 1 1 1 5 8 8 8   3 3 3 3            
(function(){
  var σ;
  σ = require('highland');
  exports.handleException = function(f){
    return function(){
      var e;
      try {
        return σ([f.apply(this, arguments)]);
      } catch (e$) {
        e = e$;
        return σ(function(push, next){
          push(e);
          return next();
        });
      }
    };
  };
}).call(this);