From 4f49455ecb63484c3b0ccd1ec5f27d8dbd4e77d5 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Mon, 19 Mar 2012 09:11:24 -0400 Subject: [PATCH] java gateway : more exception testing in test code Signed-off-by: Bill Erickson --- src/java/org/opensrf/test/TestGateway.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/java/org/opensrf/test/TestGateway.java b/src/java/org/opensrf/test/TestGateway.java index 300308d..1ac6d90 100644 --- a/src/java/org/opensrf/test/TestGateway.java +++ b/src/java/org/opensrf/test/TestGateway.java @@ -56,6 +56,8 @@ public class TestGateway { // ruh-roh public void onError(HttpRequest req, Exception ex) { + if (ex instanceof java.io.IOException) + System.err.println("Trouble communicating with gateway server!"); ex.printStackTrace(); } } -- 2.11.0