GNU Astronomy Utilities - Tasks: task #16263, Errors in the library: remove all...
You are not allowed to post comments on this tracker with your current authentication level.
task #16263: Errors in the library: remove all exit() calls
Submitter: | Mohammad Akhlaghi <makhlaghi> | ||
Submitted: | Sat 17 Sep 2022 08:42:05 PM UTC | ||
Should Start On: | Fri 16 Sep 2022 11:00:00 PM UTC | Should be Finished on: | Fri 16 Sep 2022 11:00:00 PM UTC |
Category: | Libraries | Priority: | 5 - Normal |
Item Group: | Enhancement | Status: | In Progress |
Privacy: | Public | Percent Complete: | 60% |
Assigned to: | None | Open/Closed: | Open |
Effort: | 0.00 |
Thu 27 Apr 2023 02:25:23 AM UTC, comment #5: |
Fathma Mehnoor <fathmamehnoor> |
Sun 29 Jan 2023 01:13:59 PM UTC, comment #4: After Jash's first implementation, I made some further modifications and the latest work on this task is now in the 'error' branch of Gnuastro on Codeberg.
|
Mohammad Akhlaghi <makhlaghi>![]() |
Wed 09 Nov 2022 12:12:48 PM UTC, comment #3: I've been working on the new error.h module for the library. After many discussions, we decided to go with the gal_error_t structure to hold a list of all the errors encountered as suggested by Mohammad. However, a few additions have been made:
|
Jash Shah <jash_shah> |
Tue 20 Sep 2022 08:28:36 AM UTC, comment #2: The structure of the error type seems great! Also, the ability to have the errors accumulated will be very useful, especially in cases where multiple errors from a function call stack need to be analysed.
|
Jash Shah <jash_shah> |
Mon 19 Sep 2022 04:32:57 PM UTC, comment #1: After some discussions with Pedram and Jash on #gnuastro-dev:openastronomy.org we have made some general progress in the concept.
|
Mohammad Akhlaghi <makhlaghi>![]() |
Sat 17 Sep 2022 08:42:05 PM UTC, original submission:
Currently, when the library functions hit a bad situation, they use the 'error(EXIT_FAILURE, ....)' function to inform the user and abort.
|
Mohammad Akhlaghi <makhlaghi>![]() |
No files currently attached
Depends on the following items: None found
Items that depend on this one: None found
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
Hello, I did a commit with the changes made to functions in array.c. I would like to know your feedback on this so that I can share the rest of the work.
commit link: https://github.com/fathmamehnoor/gnuastro-dev/tree/add-error-reporting