Improve Registry#getOrThrow messages

By: md_5 <git@md-5.net>
This commit is contained in:
Bukkit/Spigot
2024-09-27 08:21:26 +10:00
parent 42cd6c82ff
commit 5f8dbb00f6
2 changed files with 5 additions and 5 deletions

View File

@@ -63,7 +63,7 @@ public final class TestServer {
public Keyed getOrThrow(@NotNull NamespacedKey key) {
Keyed keyed = get(key);
Preconditions.checkArgument(keyed != null, "No registry entry found for key " + key);
Preconditions.checkArgument(keyed != null, "No %s registry entry found for key %s.", aClass, key);
return keyed;
}