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:
@@ -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());
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user