Skip to content

More explicit error when failing to add component#183

Merged
simu merged 2 commits into
projectsyn:masterfrom
chrisglass:warn-user-when-outside-of-catalog
Sep 16, 2020
Merged

More explicit error when failing to add component#183
simu merged 2 commits into
projectsyn:masterfrom
chrisglass:warn-user-when-outside-of-catalog

Conversation

@chrisglass

Copy link
Copy Markdown
Contributor

Should "component create" be called outside of a catalog, display some
information in this regard to the user.

The lower layer exception (FileNotFound) is not wrapped in the top-layer
click.Exception() wrapper anymore in order to differentiate exception
types.

Checklist

  • Keep pull requests small so they can be easily reviewed.
  • Update tests.

@srueg srueg requested review from simu and srueg September 16, 2020 11:43

@srueg srueg left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Please add a changelog entry.

@simu simu left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Please make sure that exception handling is introduced to compensate for the removed code in relsymlink.

Comment thread commodore/helpers.py
@chrisglass chrisglass force-pushed the warn-user-when-outside-of-catalog branch from f2057f1 to d541dd0 Compare September 16, 2020 12:52
@simu simu mentioned this pull request Sep 16, 2020
@chrisglass

Copy link
Copy Markdown
Contributor Author

Please add a changelog entry.

Oops! Added.

@simu

simu commented Sep 16, 2020

Copy link
Copy Markdown
Member

Please make sure that exception handling is introduced to compensate for the removed code in relsymlink.

Follow-up to come up with a concept for and refactor error handling across the whole code base: #184

Comment thread CHANGELOG.md Outdated
Should "component create" be called outside of a catalog, display some
information in this regard to the user.

The lower layer exception (FileNotFound) is not wrapped in the top-layer
click.Exception() wrapper anymore in order to differentiate exception
types.
@chrisglass chrisglass force-pushed the warn-user-when-outside-of-catalog branch from 6a08e25 to a409e45 Compare September 16, 2020 12:57
Co-authored-by: Simon Gerber <gesimu@gmail.com>
@chrisglass chrisglass force-pushed the warn-user-when-outside-of-catalog branch from a409e45 to e8135c2 Compare September 16, 2020 13:04
@simu simu merged commit 332efc7 into projectsyn:master Sep 16, 2020
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.

3 participants