print exception message, when render error. fix #994

This commit is contained in:
hengyunabc
2019-12-30 17:27:08 +08:00
parent e4c9e6f3e5
commit eeb579f131
2 changed files with 2 additions and 2 deletions
@@ -36,7 +36,7 @@ public abstract class StringUtils {
try {
return obj.toString();
} catch (Throwable t) {
return "ERROR DATA!!!";
return "ERROR DATA!!! Method toString() throw exception. obj class: " + obj.getClass() + ", exception message: " + t.getMessage();
}
}
@@ -50,7 +50,7 @@ public class ObjectView implements View {
.append(", try to specify -M size_limit in your command, check the help command for more.");
return buf.toString();
} catch (Throwable t) {
return "ERROR DATA!!!";
return "ERROR DATA!!! exception message: " + t.getMessage();
}
}