feat: throw error when pass undefined flavor name.

master
DebuggerX 4 years ago
parent 202b738cb0
commit 97609a0a45

@ -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({

Loading…
Cancel
Save