Improve migration error message (#2959)

In this migration we have checked for legacy security_keys and not gid. This makes it easier for users to understand what the issue is.
This commit is contained in:
cuberoot74088 2024-08-08 23:43:03 +02:00 committed by GitHub
parent a5cd9b5a33
commit eee2df8894
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -558,7 +558,7 @@ impl<'a> QueryServerWriteTransaction<'a> {
.collect::<Vec<_>>(); .collect::<Vec<_>>();
if !affected_entries.is_empty() { if !affected_entries.is_empty() {
error!("Unable to proceed. Not all entries meet gid/uid constraints."); error!("Unable to proceed. Some accounts still use legacy security keys, which need to be removed.");
for sk_present in affected_entries { for sk_present in affected_entries {
error!(%sk_present); error!(%sk_present);
} }