Return migration errors for Trello #2209

Closed
Elscrux wants to merge 2 commits from Elscrux/vikunja:fix/trello-migration-errors into main
1 changed files with 6 additions and 3 deletions
Showing only changes of commit 9b491aba5b - Show all commits

View File

@ -68,19 +68,22 @@ func (s *MigrationListener) Handle(msg *message.Message) (err error) {
err = ms.Migrate(event.User)
if err != nil {
return
log.Errorf("[Migration] Failed to migrate %d from %s for user %d: %s", m.ID, event.MigratorKind, event.User.ID, err)
return err
}
err = migration.FinishMigration(m)
if err != nil {
return
log.Errorf("[Migration] Failed to finish migration %d from %s for user %d: %s", m.ID, event.MigratorKind, event.User.ID, err)
return err
}
err = notifications.Notify(event.User, &MigrationDoneNotification{
MigratorName: ms.Name(),
})
if err != nil {
return
log.Errorf("[Migration] Failed to notify migration %d from %s for user %d: %s", m.ID, event.MigratorKind, event.User.ID, err)
return err
}
log.Debugf("[Migration] Successfully done migration %d from %s for user %d", m.ID, event.MigratorKind, event.User.ID)