Hide item serialization errors unless using development branch

This commit is contained in:
Intelli 2024-07-06 12:07:31 -06:00
parent 4af95632d5
commit d4cc7ec729

View File

@ -579,9 +579,11 @@ public class Util extends Queue {
bos.close(); bos.close();
result = bos.toByteArray(); result = bos.toByteArray();
} }
catch (Exception e) { catch (Exception e) { // only display exception on development branch
if (!ConfigHandler.EDITION_BRANCH.contains("-dev")) {
e.printStackTrace(); e.printStackTrace();
} }
}
return result; return result;
} }