1
0
mirror of https://github.com/Suiranoil/SkinRestorer.git synced 2026-01-16 04:42:12 +00:00

fix provider name in exception

This commit is contained in:
2024-07-02 00:02:41 +03:00
parent ed8e961067
commit 3e8463c4ce

View File

@@ -120,7 +120,7 @@ public final class SkinRestorer {
) )
.thenApplyAsync(result -> { .thenApplyAsync(result -> {
if (result.isEmpty()) if (result.isEmpty())
throw new IllegalArgumentException("provider " + context.argument() + " is not registered"); throw new IllegalArgumentException("provider " + context.name() + " is not registered");
var skinResult = result.get(); var skinResult = result.get();
if (skinResult.isError()) if (skinResult.isError())