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

make failure to load app commands non-fatal #42811

Merged
merged 1 commit into from
Feb 2, 2024

Conversation

icewind1991
Copy link
Member

Currently if a command fails to load the occ commands fails with a fatal error. This also prevents using occ app:disable to disable the offending command.

This instead catches the error, logs it and continues loading the commands from other apps.

@icewind1991 icewind1991 added the 3. to review Waiting for reviews label Jan 15, 2024
@icewind1991 icewind1991 added this to the Nextcloud 29 milestone Jan 15, 2024
@icewind1991 icewind1991 requested review from a team, ArtificialOwl, blizzz and Fenn-CS and removed request for a team January 15, 2024 15:30
lib/private/Console/Application.php Outdated Show resolved Hide resolved
@icewind1991
Copy link
Member Author

/backport to stable28

@icewind1991
Copy link
Member Author

/backport to stable27

@blizzz blizzz added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Feb 2, 2024
@icewind1991 icewind1991 merged commit 20aa86f into master Feb 2, 2024
134 checks passed
@icewind1991 icewind1991 deleted the app-command-load-non-fatal branch February 2, 2024 15:00
@blizzz blizzz mentioned this pull request Mar 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4. to release Ready to be released and/or waiting for tests to finish
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants