Skip to content

refactor: return proper error code if script result does not exist#237

Open
MaikRe wants to merge 5 commits into
canonical:masterfrom
MaikRe:improve_cli_error_when_no_script_results_exist
Open

refactor: return proper error code if script result does not exist#237
MaikRe wants to merge 5 commits into
canonical:masterfrom
MaikRe:improve_cli_error_when_no_script_results_exist

Conversation

@MaikRe
Copy link
Copy Markdown
Contributor

@MaikRe MaikRe commented May 6, 2026

If script_sets.get(id) returns None the error regarding an unknown id should only be return if that id does not match the naming of one of the three known ids. (current-commissioning, current-testing, current-installation), otherwise the function should provide clear information that no script set exists.

@MaikRe MaikRe requested a review from a team May 6, 2026 21:56
Copy link
Copy Markdown
Contributor

@r00ta r00ta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing tests

@MaikRe MaikRe marked this pull request as draft May 6, 2026 22:14
@MaikRe MaikRe marked this pull request as ready for review May 7, 2026 15:31
@MaikRe MaikRe requested a review from r00ta May 14, 2026 12:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants