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

Let repair step query exceptions bubble up #29974

Merged
merged 2 commits into from
Nov 30, 2021

Conversation

ChristophWurst
Copy link
Member

And hide the type error caused by a constructor call with missing
arguments.

new $repairStep(); only works for the rare case that no arguments are
required. Anything else will throw. Then we previously hid the trace of
the more important query exception.

This will help debug bugs like nextcloud/mail#5755.

@ChristophWurst
Copy link
Member Author

/backport to stable23

@ChristophWurst
Copy link
Member Author

/backport to stable22

@ChristophWurst
Copy link
Member Author

/backport to stable21

And hide the type error caused by a constructor call with missing
arguments.

`new $repairStep();` only works for the rare case that no arguments are
required. Anything else will throw. Then we previously hid the trace of
the more important query exception.

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
@ChristophWurst ChristophWurst force-pushed the fix/repair-step-query-exception-bubble branch from f125e12 to f68ab00 Compare November 30, 2021 08:47
lib/private/Repair.php Outdated Show resolved Hide resolved
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
@ChristophWurst ChristophWurst merged commit 2c3cf86 into master Nov 30, 2021
@ChristophWurst ChristophWurst deleted the fix/repair-step-query-exception-bubble branch November 30, 2021 11:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants