Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sync: improve error handling #699

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

ee7
Copy link
Member

@ee7 ee7 commented Oct 28, 2022

Replace:

  • showError with errorAndHelp
  • (stderr.writeLine msg then quit 1) with error

Refs: #123
Refs: #325


Working towards the approach that I use elsewhere, including:

type
BumpError* = object of CatchableError
BumpQuit = object of CatchableError

Copy link
Member

@ErikSchierboom ErikSchierboom left a comment

Choose a reason for hiding this comment

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

Looks good!

Replace:

- `showError` with `errorAndHelp`
- (`stderr.writeLine msg` then `quit 1`) with `error`

Refs: 123
Refs: 325
Replace:

- `showError` with `errorAndHelp`
- (`stderr.writeLine msg` then `quit 1`) with `error`

Refs: 123
Refs: 325
@ee7 ee7 force-pushed the sync-improve-error-handling branch from fbf8109 to 658fef6 Compare November 4, 2022 19:59
@ErikSchierboom
Copy link
Member

@ee7 Is this something you'd still like to do? It looks like a nice improvement

@ee7
Copy link
Member Author

ee7 commented May 4, 2024

It's probably an improvement overall, but please take over if you want it.

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