don't discard error when failing to read .env #629
Labels
No labels
A: API
A: Backend
A: Federation
A: Front-End
A: I18N
A: Meta
A: Security
Build
C: Bug
C: Discussion
C: Enhancement
C: Feature
Compatibility
Dependency
Design
Documentation
Good first issue
Help welcome
Mobile
Rendering
S: Blocked
S: Duplicate
S: Incomplete
S: Instance specific
S: Invalid
S: Needs Voting/Discussion
S: Ready for review
Suggestion
S: Voted on Loomio
S: Wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Plume/Plume#629
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Is your feature request related to a problem? Please describe.
Currently we try to open .env, and if it fails we assume one did not want to configure their instance that way. This is very unhelpful when the error is not from a missing file but any other kind of error that can happen (and looking at the return type, there are many)
Describe the solution you'd like
On error, get the actual error, log it, and if it is file not found, ignore it. On success, log from where the config was read (it can be read from any parent directory)
Describe alternatives you've consideredAdditional context
supersede #626