Log the underlying panic in runMigrateTask (#13096)
Log the underlying panic in runMigrateTask (#13096)

If there is a panic during runMigrateTask we should capture and log the underlying
panic error.

This PR ensures that the panic is logged and captured as part of the task message.

Fix #13095

Signed-off-by: Andrew Thornton <6a547fdd28db89120bdd70d4af1f9ba672ccd43a@cantab.net>
sapk-fork/gitea,cez81/gitea,go-gitea/gitea,sapk-fork/gitea,vdbt/gitea,sapk-fork/gitea,sapk-fork/gitea,go-gitea/gitea,go-gitea/gitea,cez81/gitea,cez81/gitea,vdbt/gitea