Adding "catch all" statement to see errors correctly.

This commit is contained in:
MarcinSc
2015-12-09 14:03:09 -08:00
parent 343a17fb85
commit 052adde480

View File

@@ -86,7 +86,7 @@ public class MtgCardServer extends AbstractServer {
String resultJson = resultArray.toJSONString();
_cardDatabaseHolder = new CardDatabaseHolder(resultJson.getBytes("UTF-8"), updateMarker);
} catch (IOException exp) {
} catch (Exception exp) {
StringWriter writer = new StringWriter();
exp.printStackTrace(new PrintWriter(writer));
_cardDatabaseHolder = new CardDatabaseHolder(writer.toString().getBytes(Charset.defaultCharset()), updateMarker);