From be689a52e3699eba71d13ea6438a4fa0103eb514 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sun, 27 Feb 2022 23:23:24 -0400 Subject: annotate find function on ref errors --- src/upd8.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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) { -- cgit 1.3.0-6-gf8a5