Update converter.java

Added precision on error