« get me outta code hell

data, util: hsmusic.sugar.index -> hsmusic.decorate.indexInSourceArray - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/util
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2023-09-30 09:14:29 -0300
committer(quasar) nebula <qznebula@protonmail.com>2023-09-30 09:14:29 -0300
commit6eaa070e5c036ba8cd45f79c16dc2732b40ea480 (patch)
tree640a68d059a992dad04e8d3f21831aab4c4b3931 /src/util
parent13b25a8d48d142b60d5c351aad4ad1bf80104320 (diff)
data, util: hsmusic.sugar.index -> hsmusic.decorate.indexInSourceArray
Diffstat (limited to 'src/util')
-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 0522b59e..2e724bae 100644
--- a/src/util/sugar.js
+++ b/src/util/sugar.js
@@ -624,7 +624,7 @@ export function decorateErrorWithIndex(fn) {
       return fn(x, index, array);
     } catch (error) {
       error.message = `(${colors.yellow(`#${index + 1}`)}) ${error.message}`;
-      error[Symbol.for('hsmusic.sugar.index')] = 1;
+      error[Symbol.for('hsmusic.decorate.indexInSourceArray')] = index;
       throw error;
     }
   };