« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
diff options
context:
space:
mode:
-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);
     }
   };