Settings generator: Validate that protoNumber is unique (#1735)
This makes specifying an already-used number a compile time error
This commit is contained in:
+2
@@ -45,6 +45,8 @@ object SettingsGenerator {
|
||||
// Ignore errors during registration
|
||||
}
|
||||
}
|
||||
} catch (e: IllegalStateException) {
|
||||
throw e
|
||||
} catch (e: Exception) {
|
||||
// Registration failed, but we tried
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user