mirror of
https://github.com/Suwayomi/Suwayomi-Server.git
synced 2026-06-30 17:34:39 -05:00
Settings generator: Validate that protoNumber is unique (#1735)
This makes specifying an already-used number a compile time error
This commit is contained in:
@@ -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