diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/util/find.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/util/find.js b/src/util/find.js index fc82ba9e..dd39bad9 100644 --- a/src/util/find.js +++ b/src/util/find.js @@ -4,6 +4,8 @@ import { logWarn } from './cli.js'; +import { inspect } from 'util'; + function warnOrThrow(mode, message) { switch (mode) { case 'error': @@ -88,7 +90,7 @@ function matchName(ref, data, mode) { if (matches.length > 1) { return warnOrThrow(mode, `Multiple matches for reference "${ref}". Please resolve:\n` + - matches.map(match => `- ${match.name} (${match.directory})\n`).join('') + + matches.map(match => `- ${inspect(match)}\n`).join('') + `Returning null for this reference.`); } |