mirror of
https://github.com/alibaba/arthas.git
synced 2024-04-21 10:21:39 +00:00
print exception message, when render error. fix #994
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user