diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2023-11-21 07:22:40 -0400 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2023-11-24 13:45:10 -0400 |
commit | 8b81a3aa4e266548ef2c8083391f6bb859915133 (patch) | |
tree | d8736886dc78d46cb8ce1b36c11e8cca36b95ff7 | |
parent | 0202375db8ccd03d98ed6c2ffbb800b67c026639 (diff) |
sugar: fix async decorateError not providing calling arguments
-rw-r--r-- | src/util/sugar.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/sugar.js b/src/util/sugar.js index 9646be37..3f0eb2ea 100644 --- a/src/util/sugar.js +++ b/src/util/sugar.js @@ -685,7 +685,7 @@ export function asyncAdaptiveDecorateError(fn, callback) { try { return await fn(...args); } catch (caughtError) { - throw callback(caughtError); + throw callback(caughtError, ...args); } }; |