Better message for git hooks and file locks

If you push "bad" commit that does not meet git hook requirements or change file that is locked you see clear message, the same should be for Web UI file editor. Currently I see message - "Git operation was rejected by pre-receive hook"

related - https://gitlab.com/gitlab-org/gitlab-ce/issues/19190

/cc @DouweM