Skip to content

Handle library load failures #86

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

Merged
merged 3 commits into from
Dec 2, 2020
Merged

Conversation

per1234
Copy link
Contributor

@per1234 per1234 commented Dec 2, 2020

No description provided.

@per1234 per1234 requested a review from silvanocerza December 2, 2020 05:08
@per1234 per1234 force-pushed the per1234/handle-library-load-failures branch from 1de68fe to b1c0d98 Compare December 2, 2020 05:11
Since the properties package has a function supporting the paths.Path type the library.properties path starts in, it was
silly to convert it to a string for use with properties.Load().
In the event of a problem loading, this will return an empty map rather than nil. The error already serves as the
indicator of this problem for the invalid library.properties check, so having an empty map as the output only simplifies
the handling of that situation in the other checks.
The issue that caused the failure will be caught by a specific check, so the other checks that use the data returned by
this function should simply not run.
@per1234 per1234 force-pushed the per1234/handle-library-load-failures branch from b1c0d98 to 98d8011 Compare December 2, 2020 15:20
@per1234 per1234 merged commit 83b63b7 into main Dec 2, 2020
@per1234 per1234 deleted the per1234/handle-library-load-failures branch December 3, 2020 19:17
@per1234 per1234 added topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project labels Sep 29, 2021
@per1234 per1234 self-assigned this Nov 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants