diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2023-11-21 07:22:40 -0400 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2023-11-21 07:49:19 -0400 |
commit | 92fc43c31f08d477c95524bc4a04b11ecb8fb5d1 (patch) | |
tree | 43a8071a20b0ee522a4d3d12921d567f6220fc70 | |
parent | a6dedb0b17f514e408919240c060072df2b179dd (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); } }; |