Settings generator: Validate that protoNumber is unique (#1735)

This makes specifying an already-used number a compile time error
This commit is contained in:
Constantin Piber
2025-10-25 00:37:58 +02:00
committed by GitHub
parent d8050dc483
commit b4db9ebdb0
2 changed files with 6 additions and 0 deletions
@@ -45,6 +45,8 @@ object SettingsGenerator {
// Ignore errors during registration
}
}
} catch (e: IllegalStateException) {
throw e
} catch (e: Exception) {
// Registration failed, but we tried
}