-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enhance Scenario Validation and Error Handling
This commit enhances scenario validation and error handling across the `localstorage.go` and `scenario.go` files. The key updates include: - Introduced validation checks for `scenarioParams` within the `ReadCnappGoatConfig`, `updateScenariosFromFolder`, and `createScenario` methods in `localstorage.go`. - Enhanced error messages in the `scenario.go` file for improved clarity. - Refactored the panic error handling in the `Module` and `Platform` string representation functions to return an empty string instead. - Improved the unmarshalling logic for runtime options. - Added a comprehensive `IsValid` function for scenario parameters to ensure all necessary fields are present and correctly formatted.
- Loading branch information
1 parent
d277a70
commit 600b371
Showing
2 changed files
with
64 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters