WildernessLabs / Meadow_Issues

Public repo for bugs and issues with Meadow
15 stars 0 forks source link

Passing invalid Configuration to TrimApplication causes crash with “Sequence contains no elements” error. #751

Closed CartBlanche closed 2 months ago

CartBlanche commented 2 months ago

Describe the bug When calling TrimApplication, if an invalid Configuration is passed in the TrimApplication call we get a Sequence contains no elements error when the Linq block blows up.

To Reproduce Steps to reproduce the behaviour:

  1. Call TrimApplication with an AppPath that is contains "Debug", for example, but pass in "Release" as the configuration parameter.
  2. Execute the API call
  3. See error

Expected behavior Better error messaging when it blows up, so that the user can better identify what went wrong.

Screenshot

Screenshot 2024-07-23 at 17 44 49

Additional context Suggested Fix - https://github.com/WildernessLabs/Meadow.CLI/pull/586