diff options
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 |
commit | be689a52e3699eba71d13ea6438a4fa0103eb514 (patch) | |
tree | 3ee2ecf4843edd48e07f6e116167f29166a2e61c | |
parent | 4a9464153b750ca18bbf06e4e37727433c2b9022 (diff) |
annotate find function on ref errors
-rwxr-xr-x | src/upd8.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/upd8.js b/src/upd8.js index 7ca36a78..38027bab 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) { |