Skip to content

Commit

Permalink
#1774: show proper error when no keys were provided to build / bt / b…
Browse files Browse the repository at this point in the history
…d / bdb
  • Loading branch information
JoernBerkefeld committed Nov 21, 2024
1 parent 9542722 commit c22bda5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion @types/lib/index.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1127,6 +1127,7 @@ class Mcdev {
return;
}
if (!Array.isArray(typeKeyCombo[type])) {
Util.logger.error('You need to define keys, not just types to run build');
// we need an array of keys here
return;
}
Expand Down Expand Up @@ -1188,6 +1189,7 @@ class Mcdev {
return;
}
if (!Array.isArray(selectedTypes[type])) {
Util.logger.error('You need to define keys, not just types to run buildTemplate');
// we need an array of keys here
return;
}
Expand Down Expand Up @@ -1326,6 +1328,7 @@ class Mcdev {
return;
}
if (!Array.isArray(selectedTypes[type])) {
Util.logger.error('You need to define keys, not just types to run buildDefinition');
// we need an array of keys here
return;
}
Expand Down Expand Up @@ -1381,6 +1384,9 @@ class Mcdev {
return;
}
if (!Array.isArray(selectedTypes[selectedType])) {
Util.logger.error(
'You need to define keys, not just types to run buildDefinitionBulk'
);
// we need an array of keys here
return;
}
Expand Down

0 comments on commit c22bda5

Please sign in to comment.