error handling: use user-error and rely on early abort control flow#154
error handling: use user-error and rely on early abort control flow#154wbolster wants to merge 2 commits into
Conversation
Run ‘M-x untabify’ the whole file to avoid mixing tabs and spaces
Use ‘user-error’ to signal errors, e.g. missing remotes, etc. Unlike ‘message’, this causes an early return from the defun, so many conditionals like ‘if’ and ‘cond’ are no longer needed. Fixes sshaw#45.
|
Hi, thanks for the pull request! Wow almost 10 years since you opened the issue. Glad to see you're still here and using git-link! ❤️ Going back to the original issue (😅), I think the desire for My thought process is mostly based on the premise that Thoughts? |
|
Also in #45 you said:
Do you just mean when calling it non-interactively or something else? |
|
the good news is that you're wrong 🙃:
additionally, having a programmatic interface would be helpful indeed, b/c it would mean it can be called without accidentally opening a browser (depending on config etc), but that seems like a separate undertaking which can be done afterwards? |
Use ‘user-error’ to signal errors, e.g. missing remotes, etc.
Unlike ‘message’, this causes an early return from the defun, so many
conditionals like ‘if’ and ‘cond’ are no longer needed.
Fixes #45.