Describe the bug
When provided invalid configuration in the YAML file, process exits with success code and only prints the configuration param related error.
Process should exit with some error code so that script execution fails in this case.
Device (please complete the following information):
Device: issue is not related to device
OS: issue is not related to OS
To Reproduce
Steps to reproduce the behavior, using the example app:
In pubspec.yaml under flutter_native_splash section, use some invalid key which is not supported by flutter_native_splash. Refer invalid configuration we mentioned above.
In our case, we were using android12 by mistake instead of android_12.
Run dart run flutter_native_splash:create
This will print error "⚠️ The parameter "android12" was found in your flutter_native_splash config, but "android12" is not a valid flutter_native_splash parameter."
The process exits with 0 as code in this case which means process completed without any issue.
Screenshots
Additional context
We are suggesting a change to return 1 as code while making process exit when YAML to configuration mapping detects any invalid key. This will mark the script as failed with error.
Describe the bug When provided invalid configuration in the YAML file, process exits with success code and only prints the configuration param related error. Process should exit with some error code so that script execution fails in this case.
Configuration
Device (please complete the following information):
To Reproduce Steps to reproduce the behavior, using the example app:
android12
by mistake instead ofandroid_12
.dart run flutter_native_splash:create
Screenshots
Additional context We are suggesting a change to return 1 as code while making process exit when YAML to configuration mapping detects any invalid key. This will mark the script as failed with error.