Skip to content

Conversation

@olehermanse
Copy link
Member

No description provided.

We don't want to accidentally skip some things user specified, better be strict.

Signed-off-by: Ole Herman Schumacher Elgesem <ole.elgesem@northern.tech>
We have some examples of this already in tests; example-cfbs.json.

Also refactored error checking for missing files / folders.

Signed-off-by: Ole Herman Schumacher Elgesem <ole.elgesem@northern.tech>
There are more cases of GenericExitError which could be converted, but
we can do those over time.

Signed-off-by: Ole Herman Schumacher Elgesem <ole.elgesem@northern.tech>
Signed-off-by: Ole Herman Schumacher Elgesem <ole.elgesem@northern.tech>
Signed-off-by: Ole Herman Schumacher Elgesem <ole.elgesem@northern.tech>
Signed-off-by: Ole Herman Schumacher Elgesem <ole.elgesem@northern.tech>
To make it clear which exceptions are custom to CFBS.
To avoid potential collisions or confusion with other libraries' exceptions.

Also dropped "Generic" in GenericExitError - CFBSExitError seems descriptive enough.

Signed-off-by: Ole Herman Schumacher Elgesem <ole.elgesem@northern.tech>
Copy link
Contributor

@craigcomstock craigcomstock left a comment

Choose a reason for hiding this comment

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

a few typos is all.

Signed-off-by: Ole Herman Schumacher Elgesem <ole.elgesem@northern.tech>
@olehermanse olehermanse merged commit c1c5229 into cfengine:master Jul 11, 2025
11 checks passed
@olehermanse olehermanse deleted the errors branch July 11, 2025 14:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants