« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/util/find.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/find.js')
-rw-r--r--src/util/find.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/util/find.js b/src/util/find.js
index fc82ba9..dd39bad 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.`);
     }