diff --git a/src/main/java/com/huawei/ci/portal/util/HttpContextUtil.java b/src/main/java/com/huawei/ci/portal/util/HttpContextUtil.java index 35183ec161b22f4eae4d33cfbebd370062153c84..dd73e7642f4b03585fc5f995424bd7b80bc121fd 100644 --- a/src/main/java/com/huawei/ci/portal/util/HttpContextUtil.java +++ b/src/main/java/com/huawei/ci/portal/util/HttpContextUtil.java @@ -13,7 +13,7 @@ public class HttpContextUtil { private static final int SUCCESS=200; private static final int REDIRECT_ERROR=302; private static final int TOKEN_ERROR=403; - private static final int NO_PAGE=404; + private static final int NO_PAGE=404 private static final int TEST=1111 @SneakyThrows @@ -24,7 +24,9 @@ public class HttpContextUtil { context.response().putHeader("Content-Type","text/plain"); context.response().putHeader("Content-Length",String.valueOf(responseStr.length())); context.response().write(responseStr); - }catch (Exception ignored){} + }catch (Exception ignored){ + ignored.printStackTrace(); + } }