Editing a wiki page throws a 500 when pre receive hook fails without showing any message
In our company we have a pre receive hook that blocks entering sensitive data in the repository. It will analyze the contents for the commit diff to do that.
When I try to edit a wiki page that has text detected as sensitive (even when it's a false positive), gitlab will just fail with a 500 error page, without letting the user see the pre receive hook message, which would alert him of the issue. Besides, any edits are lost in the process.
With that behaviour, it's a real pain in the neck to edit wiki pages.
Currently, the only way to see what's wrong is to check gitlab logs, which is obviously not acceptable for our end users
Expected:
- That the user would be able to see the pre receive hook output
- That the new content isn't lost
Edited by Gabriel Takeuchi