-
Notifications
You must be signed in to change notification settings - Fork 20
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
Added signalling errors where appropriate. #77
Conversation
'annotate-load-annotation-data'.
…load-annotation-data-ignore-errors'. The existing code relies on the fact that a non existing database file can be considered as an empty database, wrote a wrapper of 'annotate-load-annotation-data' to keep the old behaviour.
… existing annotation.
- fixed type of second argument calling 'signal' in 'annotate-load-annotation-data'.
Hi @bastibe! I am not able to find any other function where adding errors signalling could be useful. Bye! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great!
I wonder if it might be better to add an optional ignore-errors
argument to annotate-load-annotation-data
instead of creating a new function. This might be a bit more concise.
- added docstring to 'annotate-load-annotation-data-ignore-errors'.
On Mon, Aug 10, 2020 at 11:49:43PM -0700, Bastian Bechtold wrote:
Hi @bastibe!!
Looks great!
I wonder if it might be better to add an optional `ignore-errors` argument to `annotate-load-annotation-data` instead of creating a new function. This might be a bit more concise.
To be honest as the function
'annotate-load-annotation-data-ignore-errors' is used here and there
in the code, replacing each occurrence of said function with:
(ignore-errors (annotate-load-annotation-data ...
would be not so elegant.
Anyway i left the decision to you, as usual! :)
Bye!
C.
|
Sorry for not being precise (again). What I meant was to change the function to
and call it variously as But I am entirely OK with the current solution as well. |
Used an optional parameter in 'annotate-load-annotation-data' to ignore the signalled errors instead.
On Tue, Aug 11, 2020 at 08:45:36AM -0700, Bastian Bechtold wrote:
Hi Bastibe!!!
Sorry for not being precise (again).
No, it is my fault, your message was very clear, it is me that did not
pay the necessary attention reading it. :(
What I meant was to change the function to
(defun annotate-load-annotation-data (&optional ignore-errors) ...)
and call it variously as `(annotate-load-annotation-data)` or `(annotate-load-annotation-data t)`.
This is a much more elegant solution! :)
Bye!
C.
|
Hi bastibe! OK, merging! Thak you for your support! :) Bye! |
My pleasure! Thank you for all the hard work! |
Hi @bastibe!
I am starting to working on what we discussed in #76, adding errors to developers oriented functions. To me the first candidate was the function that load the annotation database from a file.
I am going to add errors one function for commit because i think would be simpler to evaluate the changes.
Bye!
C.