Skip to content

Commit d7465b7

Browse files
author
Muhammed Thanish
authored
Merge pull request #8 from jfresco/feature/pass-context-info-on-errors
Pass resolver contextual information to error handler
2 parents 5ebe970 + 10f5975 commit d7465b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ function maskField(field, fn) {
6868
const out = resolveFn.call(this, ...args);
6969
return await Promise.resolve(out);
7070
} catch (e) {
71-
throw fn(e);
71+
throw fn(e, args);
7272
}
7373
};
7474

0 commit comments

Comments
 (0)