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

Commit

Permalink
move error handler out of index so it doesn't break browsers and reac…
Browse files Browse the repository at this point in the history
…t native
  • Loading branch information
ekryski committed Feb 24, 2016
1 parent e486178 commit 33a8852
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 1 addition & 3 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import handler from './error-handler';

const debug = require('debug')('feathers-errors');

// NOTE (EK): Babel doesn't properly support extending
Expand Down Expand Up @@ -171,4 +169,4 @@ const errors = {
Unavailable
};

export default Object.assign({ handler, types: errors, errors }, errors);
export default Object.assign({ types: errors, errors }, errors);
3 changes: 3 additions & 0 deletions src/middleware.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import handler from './error-handler';

export default handler;

0 comments on commit 33a8852

Please sign in to comment.