mirror of
https://github.com/Suiranoil/SkinRestorer.git
synced 2026-01-16 04:42:12 +00:00
better display invalid provider error
This commit is contained in:
@@ -120,7 +120,7 @@ public final class SkinRestorer {
|
||||
)
|
||||
.thenApplyAsync(result -> {
|
||||
if (result.isEmpty())
|
||||
throw new IllegalArgumentException("provider " + context.name() + " is not registered");
|
||||
return Result.<Collection<ServerPlayer>, String>error("provider '" + context.name() + "' is not registered");
|
||||
|
||||
var skinResult = result.get();
|
||||
if (skinResult.isError())
|
||||
|
||||
Reference in New Issue
Block a user