From 612d9854da40aa137679979290fc7db668b7f2c0 Mon Sep 17 00:00:00 2001 From: smit-ghl <129262774+smit-ghl@users.noreply.github.com> Date: Fri, 26 Jan 2024 09:11:38 +0530 Subject: [PATCH] fix: exit process with error code when unexpected config provided in yaml (#657) --- lib/cli_commands.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cli_commands.dart b/lib/cli_commands.dart index 683f459..8efd6c8 100644 --- a/lib/cli_commands.dart +++ b/lib/cli_commands.dart @@ -368,7 +368,7 @@ Map _yamlToMap(YamlMap yamlMap) { print(pen("⚠️ The parameter \"${entry.key}\" was found " "in your flutter_native_splash config, but \"${entry.key}\" " "is not a valid flutter_native_splash parameter.")); - exit(0); + exit(1); } if (entry.value is YamlList) { final list = [];