]> source.dussan.org Git - gitea.git/commit
Resolve panic on failed interface conversion in migration v156 (#15604)
authortechknowlogick <techknowlogick@gitea.io>
Sat, 24 Apr 2021 03:14:39 +0000 (23:14 -0400)
committerGitHub <noreply@github.com>
Sat, 24 Apr 2021 03:14:39 +0000 (11:14 +0800)
commitea40eb749b9f7f238fc9bb60c4a9d455c62b75ca
tree0b1d77fdbe33586d4b999a6a6b843bb8a49046ec
parent1b3dbdba4e218a9f2ca58f342a20c8beb53bb28a
Resolve panic on failed interface conversion in migration v156 (#15604)

go panics otherwise with `panic: interface conversion: error is git.ErrNotExist, not *git.ErrNotExist`, thanks to Codeberg/Andi for reporting this.

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
models/migrations/v156.go