Skip to content

Commit

Permalink
feat(rstream): add trace() error handler
Browse files Browse the repository at this point in the history
  • Loading branch information
postspectacular committed Jan 28, 2018
1 parent ababaa1 commit 2247f72
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/rstream/src/subs/trace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ export function trace(prefix?: any): ISubscriber<any> {
},
done() {
prefix ? console.log(prefix, "done") : console.log("done");
},
error(e) {
prefix ? console.log(prefix, "error", e) : console.log("error", e);
}
}
}

0 comments on commit 2247f72

Please sign in to comment.