Skip to content
This repository has been archived by the owner on Nov 15, 2018. It is now read-only.

Commit

Permalink
Merge 55896ff into a6b4920
Browse files Browse the repository at this point in the history
  • Loading branch information
helio-frota committed Oct 31, 2016
2 parents a6b4920 + 55896ff commit 3b4e808
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/trace_hooks.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ const asyncWrap = process.binding('async_wrap');
const filters = new Set();

const enable = function activate () {
if (filters.size === 0) {
throw new Error('You need to add at least one filter to see the traces.');
}
asyncWrap.enable();
};

Expand Down

0 comments on commit 3b4e808

Please sign in to comment.