diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2023-09-30 08:29:13 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2023-09-30 08:29:13 -0300 |
commit | 13b25a8d48d142b60d5c351aad4ad1bf80104320 (patch) | |
tree | c77d7c24a962aea5f14cf6da8bc222e8394cab23 /src | |
parent | 38e8ed330aa238dc258b7749ce704eb98f5ac670 (diff) |
util, test: WIP decorate error with index symbol
Diffstat (limited to 'src')
-rw-r--r-- | src/util/sugar.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/util/sugar.js b/src/util/sugar.js index 29fcf848..0522b59e 100644 --- a/src/util/sugar.js +++ b/src/util/sugar.js @@ -624,6 +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; throw error; } }; |