From d394d763aedafe7b97e9fb12c0b77cb839bd8012 Mon Sep 17 00:00:00 2001 From: Sam Carlton Date: Sun, 15 May 2022 10:54:11 -0500 Subject: [PATCH] Add file counts to error mesage --- build-lists.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build-lists.js b/build-lists.js index 18e6a68..3bdcc33 100644 --- a/build-lists.js +++ b/build-lists.js @@ -376,7 +376,7 @@ class BuildLists { console.log( this.lists[listOptions.name].size, 'Entries' ) if ( fileCount !== this.lists[listOptions.name].size ) { - throw new Error( `Files don\'t match list count in ${ apiListDirectory }` ) + throw new Error( `Files (${ fileCount }) don\'t match list count in ${ apiListDirectory }(${ this.lists[listOptions.name].size }).` ) } }