// ReadyError returns the ready state of the migration -
// either nil for ready or err for not ready or a migration error
ReadyError returns the ready state of the migration
either nil for ready or err for not ready or a migration error
// ReadyError returns the ready state of the migration - // either nil for ready or err for not ready or a migration error
func (m *Runner) ReadyError() error {
	if err := m.migrationError.Load(); err != nil {
		return fmt.Errorf("Error migrating database: %w", err)
	}
	if m.ready.Load() {
		return nil
	}
	return versioning.ErrMigrationsNotRun
}
func ( m * Runner ) ReadyError ( ) error { if err := m . migrationError . Load ( ) ; err != nil { return fmt . Errorf ( " " , err ) } if m . ready . Load ( ) { return nil } return versioning . ErrMigrationsNotRun }
ReadyError returns the ready state of the migration
either nil for ready or err for not ready or a migration error
ReadyError returns the ready state of the migration either nil for ready or err for not ready or a migration error