pub fn migrate_error(err: OldDispatchError) -> DispatchError