From 363fafe8abec7cab4cf24e32af5b283e7813f8c5 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Fri, 24 Oct 2025 07:08:20 -0300 Subject: upd8: reportDirectoryErrors messaging --- src/upd8.js | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/upd8.js b/src/upd8.js index ae072d5a..0bceea8d 100755 --- a/src/upd8.js +++ b/src/upd8.js @@ -1798,10 +1798,17 @@ async function main() { if (!paragraph) console.log(''); niceShowAggregate(aggregate); - logWarn`The above duplicate directories were detected while reviewing data files.`; - logWarn`Since it's impossible to automatically determine which one's directory is`; - logWarn`correct, the build can't continue. Specify unique 'Directory' fields in`; - logWarn`some or all of these data entries to resolve the errors.`; + if (aggregate.errors.find(err => err.message.toLowerCase().includes('duplicate'))) { + logWarn`The above duplicate directories were detected while reviewing data files.`; + logWarn`Since it's impossible to automatically determine which one's directory is`; + logWarn`correct, the build can't continue. Specify unique 'Directory' fields in`; + logWarn`some or all of these data entries to resolve the errors.`; + } else { + logWarn`The above directory errors were detected while reviewing data files.`; + logWarn`Since it's impossible to automatically fill in working directories,`; + logWarn`the build can't continue. Manually specify 'Directory' fields in`; + logWarn`some or all of these data entries to resolve the errors.`; + } console.log(''); paragraph = true; -- cgit 1.3.0-6-gf8a5