Merge pull request #179 from HugoDaBosss/master

Stop error fetching hand item spamming console.
This commit is contained in:
Myles 2016-03-08 21:24:47 +00:00
commit 3a217503fc

View File

@ -53,7 +53,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 "); System.out.println("Error fetching hand item: " + e.getClass().getName());
if(ViaVersion.getInstance().isDebug())
e.printStackTrace(); e.printStackTrace();
return null; return null;
} }
@ -215,7 +216,8 @@ 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());
if(ViaVersion.getInstance().isDebug())
e.printStackTrace(); e.printStackTrace();
} }
} }