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

Added signalling errors where appropriate. #77

Merged
merged 11 commits into from
Aug 12, 2020

Conversation

cage2
Copy link
Collaborator

@cage2 cage2 commented Jul 31, 2020

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.

cage added 6 commits July 31, 2020 18:09
…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.
@cage2 cage2 changed the title Added signalling 'annotate-load-annotation-data' to: 'annotate-load-annotation-data'. Added signalling errors where appropriate. Aug 5, 2020
- fixed    type   of    second    argument    calling   'signal'    in
  'annotate-load-annotation-data'.
@cage2
Copy link
Collaborator Author

cage2 commented Aug 5, 2020

Hi @bastibe!

I am not able to find any other function where adding errors signalling could be useful.
So looking forward for your comments! :)

Bye!
C.

Copy link
Owner

@bastibe bastibe left a 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.

cage added 2 commits August 11, 2020 16:30
- added docstring to 'annotate-load-annotation-data-ignore-errors'.
@cage2
Copy link
Collaborator Author

cage2 commented Aug 11, 2020 via email

@bastibe
Copy link
Owner

bastibe commented Aug 11, 2020

Sorry for not being precise (again). 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).

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.
@cage2
Copy link
Collaborator Author

cage2 commented Aug 11, 2020 via email

@cage2
Copy link
Collaborator Author

cage2 commented Aug 12, 2020

Hi bastibe!

OK, merging! Thak you for your support! :)

Bye!
C.

@cage2 cage2 merged commit 2bf7a7c into bastibe:master Aug 12, 2020
@bastibe
Copy link
Owner

bastibe commented Aug 13, 2020

My pleasure! Thank you for all the hard work!

@cage2 cage2 deleted the signalling-errors branch July 16, 2023 10:08
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