« get me outta code hell

data, yaml: make CacheableObjectPropertyValueError formally translucent - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/data/things
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2024-01-06 09:04:54 -0400
committer(quasar) nebula <qznebula@protonmail.com>2024-01-06 09:14:21 -0400
commit95d6d14500c36e96836f0b74a845e31c04dec62c (patch)
tree6ba156dae0daaf835d936ed32c33593651328180 /src/data/things
parent5415182c9944a995f84ba644e91196e554665aec (diff)
data, yaml: make CacheableObjectPropertyValueError formally translucent
Diffstat (limited to 'src/data/things')
-rw-r--r--src/data/things/cacheable-object.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/data/things/cacheable-object.js b/src/data/things/cacheable-object.js
index a8610fad..6b8d5def 100644
--- a/src/data/things/cacheable-object.js
+++ b/src/data/things/cacheable-object.js
@@ -356,6 +356,8 @@ export default class CacheableObject {
 }
 
 export class CacheableObjectPropertyValueError extends Error {
+  [Symbol.for('hsmusic.aggregate.translucent')] = true;
+
   constructor(property, oldValue, newValue, error) {
     super(
       `Error setting ${colors.green(property)} (${inspect(oldValue)} -> ${inspect(newValue)})`,