« get me outta code hell

annotate find function on ref errors - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2022-02-27 23:23:24 -0400
committer(quasar) nebula <qznebula@protonmail.com>2022-02-27 23:23:24 -0400
commitbe689a52e3699eba71d13ea6438a4fa0103eb514 (patch)
tree3ee2ecf4843edd48e07f6e116167f29166a2e61c
parent4a9464153b750ca18bbf06e4e37727433c2b9022 (diff)
annotate find function on ref errors
-rwxr-xr-xsrc/upd8.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/upd8.js b/src/upd8.js
index 7ca36a7..38027ba 100755
--- a/src/upd8.js
+++ b/src/upd8.js
@@ -2917,16 +2917,16 @@ async function main() {
                                         }
                                         return boundFind.artist(who);
                                     }),
-                                    {message: `Reference errors in contributions ${color.green(property)}`});
+                                    {message: `Reference errors in contributions ${color.green(property)} (${color.green('find.artist')})`});
                                 continue;
                             }
                             const findFn = boundFind[findFnKey];
                             const value = thing[property];
                             if (Array.isArray(value)) {
                                 thing[property] = filter(value, decorateErrorWithIndex(findFn),
-                                    {message: `Reference errors in property ${color.green(property)}`});
+                                    {message: `Reference errors in property ${color.green(property)} (${color.green('find.' + findFnKey)})`});
                             } else {
-                                nest({message: `Reference error in property ${color.green(property)}`}, ({ call }) => {
+                                nest({message: `Reference error in property ${color.green(property)} (${color.green('find.' + findFnKey)})`}, ({ call }) => {
                                     try {
                                         call(findFn, value);
                                     } catch (error) {