diff options
author | zeripath <art27@cantab.net> | 2022-03-10 20:23:15 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-10 20:23:15 +0000 |
commit | a0db075f21e961b687221a8b9ed9defb26d2624e (patch) | |
tree | d5b24f6bf6423aa290b495e2d2ac8e9e3771f376 /models/migrations | |
parent | ba470a85dd657c586aa07bd5bb4010b93aa8dfa9 (diff) | |
download | gitea-a0db075f21e961b687221a8b9ed9defb26d2624e.tar.gz gitea-a0db075f21e961b687221a8b9ed9defb26d2624e.zip |
If rendering has failed due to a net.OpError stop rendering (attempt 2) (#19049)
Unfortunately #18642 does not work because a `*net.OpError` does not implement
the `Is` interface to make `errors.Is` work correctly - thus leading to the
irritating conclusion that a `*net.OpError` is not a `*net.OpError`.
Here we keep the `errors.Is` because presumably this will be fixed at
some point in the golang main source code but also we add a simply type
cast to also check.
Fix #18629
Signed-off-by: Andrew Thornton <art27@cantab.net>
Diffstat (limited to 'models/migrations')
0 files changed, 0 insertions, 0 deletions