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

display error message in case of exception

This commit is contained in:
2024-07-02 01:24:12 +03:00
parent 686d659126
commit 3e88781186

View File

@@ -134,9 +134,8 @@ public final class SkinRestorer {
}, server)
.orTimeout(10, TimeUnit.SECONDS)
.exceptionally(e -> {
var cause = String.valueOf(e);
SkinRestorer.LOGGER.error(cause);
return Result.error(cause);
SkinRestorer.LOGGER.error(e.toString());
return Result.error(e.getMessage());
});
}
}