diff options
| author | Sho Sakuma <me@m1sk9.dev> | 2026-08-30 13:48:54 +0900 |
|---|---|---|
| committer | Sho Sakuma <me@m1sk9.dev> | 2026-08-30 13:48:54 +0900 |
| commit | ebdb8d1940b41bab60d201eb6b0cd6f05efbc6ac (patch) | |
| tree | 6d4d14a5f6cc07d28d8b85fdaedc32496e6f5988 | |
| parent | b54f9823aa7f9643d95186c974c529ab598404a4 (diff) | |
| download | LunaticChat-ebdb8d1940b41bab60d201eb6b0cd6f05efbc6ac.tar.gz LunaticChat-ebdb8d1940b41bab60d201eb6b0cd6f05efbc6ac.tar.bz2 LunaticChat-ebdb8d1940b41bab60d201eb6b0cd6f05efbc6ac.zip | |
docs(paper): say why the non-YamlException catch has no test
It shows up as an uncovered line on every patch that touches parse(),
and the next reader would otherwise have to rediscover that no config.yml
can reach it.
Co-Authored-By: Claude <noreply@anthropic.com>
| -rw-r--r-- | platform-paper/src/main/kotlin/dev/m1sk9/lunaticChat/paper/config/ConfigManager.kt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/platform-paper/src/main/kotlin/dev/m1sk9/lunaticChat/paper/config/ConfigManager.kt b/platform-paper/src/main/kotlin/dev/m1sk9/lunaticChat/paper/config/ConfigManager.kt index 35d19a3..58b1df2 100644 --- a/platform-paper/src/main/kotlin/dev/m1sk9/lunaticChat/paper/config/ConfigManager.kt +++ b/platform-paper/src/main/kotlin/dev/m1sk9/lunaticChat/paper/config/ConfigManager.kt @@ -158,7 +158,8 @@ class ConfigManager( document = remaining } catch (e: Exception) { // A serializer can fail without kaml turning it into a YamlException, and there is - // no path to prune a single setting by without one. + // no path to prune a single setting by without one. No config.yml reaches this - + // only a serializer bug does - so it is deliberately left without a test. return ParseOutcome.Undecodable(UNREADABLE, e) } } |
