« get me outta code hell

sugar: fix async decorateError not providing calling arguments - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/util/sugar.js
diff options
context:
space:
mode:
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
commit92fc43c31f08d477c95524bc4a04b11ecb8fb5d1 (patch)
tree43a8071a20b0ee522a4d3d12921d567f6220fc70 /src/util/sugar.js
parenta6dedb0b17f514e408919240c060072df2b179dd (diff)
sugar: fix async decorateError not providing calling arguments
Diffstat (limited to 'src/util/sugar.js')
-rw-r--r--src/util/sugar.js2
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);
     }
   };