feat: throw error when pass undefined flavor name.
This commit is contained in:
@@ -34,6 +34,9 @@ void main(List<String> arguments) {
|
|||||||
flavor = args.flavor;
|
flavor = args.flavor;
|
||||||
isReplace = args.isReplaceMode;
|
isReplace = args.isReplaceMode;
|
||||||
|
|
||||||
|
if (!FLAVORS.contains(flavor))
|
||||||
|
throw Exception('Undefined flavor !!!');
|
||||||
|
|
||||||
_ctx.addEntries(FLAVORS.map((e) => MapEntry(e, e)));
|
_ctx.addEntries(FLAVORS.map((e) => MapEntry(e, e)));
|
||||||
|
|
||||||
_ctx.addAll({
|
_ctx.addAll({
|
||||||
|
|||||||
Reference in New Issue
Block a user