Skip to content

Commit

Permalink
Pass resolver contextual information to error handler
Browse files Browse the repository at this point in the history
  • Loading branch information
jfresco committed Jan 2, 2017
1 parent 6ef0b2c commit 10f5975
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/index.js
Expand Up @@ -68,7 +68,7 @@ function maskField(field, fn) {
const out = resolveFn.call(this, ...args);
return await Promise.resolve(out);
} catch (e) {
throw fn(e);
throw fn(e, args);
}
};

Expand Down

0 comments on commit 10f5975

Please sign in to comment.