mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2024-11-10 20:41:14 +01:00
Print errors while in debug mode
This commit is contained in:
parent
f38bb0ca22
commit
0c890c3a30
@ -54,6 +54,8 @@ public class ViaVersionPlugin extends JavaPlugin implements ViaVersionAPI {
|
|||||||
}).get(10, TimeUnit.SECONDS);
|
}).get(10, TimeUnit.SECONDS);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
System.out.println("Error fetching hand item: " + e.getClass().getName());
|
System.out.println("Error fetching hand item: " + e.getClass().getName());
|
||||||
|
if(ViaVersion.getInstance().isDebug())
|
||||||
|
e.printStackTrace();
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -214,8 +216,9 @@ public class ViaVersionPlugin extends JavaPlugin implements ViaVersionAPI {
|
|||||||
f.get(10, TimeUnit.SECONDS);
|
f.get(10, TimeUnit.SECONDS);
|
||||||
}
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
System.out.println("Failed to run task.");
|
System.out.println("Failed to run task: " + e.getClass().getName());
|
||||||
e.printStackTrace();
|
if(ViaVersion.getInstance().isDebug())
|
||||||
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user