mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2025-02-13 16:24:23 +01:00
Show the root cause on upload failed.
This commit is contained in:
parent
4db140c973
commit
c60cd9dae6
1 changed files with 2 additions and 0 deletions
|
@ -5,6 +5,7 @@ import static com.mojang.authlib.minecraft.MinecraftProfileTexture.Type.SKIN;
|
|||
import static net.minecraft.client.renderer.GlStateManager.*;
|
||||
|
||||
import com.google.common.base.Splitter;
|
||||
import com.google.common.base.Throwables;
|
||||
import com.google.common.collect.ImmutableMap;
|
||||
import com.mojang.authlib.GameProfile;
|
||||
import com.mojang.authlib.minecraft.MinecraftProfileTexture;
|
||||
|
@ -592,6 +593,7 @@ public class GuiSkins extends GuiScreen {
|
|||
|
||||
|
||||
private Void onFailure(Throwable t) {
|
||||
t = Throwables.getRootCause(t);
|
||||
LogManager.getLogger().warn("Upload failed", t);
|
||||
this.setUploadError(t.toString());
|
||||
this.uploadingSkin = false;
|
||||
|
|
Loading…
Reference in a new issue