File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
framework/src/main/java/org/tron/core/services/http Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -93,6 +93,10 @@ public static String printErrorMsg(Exception e) {
9393 return jsonObject .toJSONString ();
9494 }
9595
96+ public static String getErrorMsg (Exception e ) {
97+ return e .getMessage ();
98+ }
99+
96100 public static String printBlockList (BlockList list , boolean selfType ) {
97101 List <Block > blocks = list .getBlockList ();
98102 JSONObject jsonObject = JSONObject .parseObject (JsonFormat .printToString (list , selfType ));
@@ -484,7 +488,7 @@ public static void processError(Exception e, HttpServletResponse response) {
484488 }
485489
486490 public static void printError (Exception e , HttpServletResponse response ) throws IOException {
487- response .getWriter ().println (e . getMessage ( ));
491+ response .getWriter ().println (Util . getErrorMsg ( e ));
488492 }
489493
490494 public static void printError (String message , HttpServletResponse response ) throws IOException {
You can’t perform that action at this time.
0 commit comments