From e29d8d53e07560282f44aeaa9f025e665f288fc1 Mon Sep 17 00:00:00 2001 From: hengyunabc Date: Sun, 26 Apr 2020 21:20:28 +0800 Subject: [PATCH] print more details when ProcessImpl error --- .../com/taobao/arthas/core/shell/system/impl/ProcessImpl.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/com/taobao/arthas/core/shell/system/impl/ProcessImpl.java b/core/src/main/java/com/taobao/arthas/core/shell/system/impl/ProcessImpl.java index f145cf97c..606c67a7d 100644 --- a/core/src/main/java/com/taobao/arthas/core/shell/system/impl/ProcessImpl.java +++ b/core/src/main/java/com/taobao/arthas/core/shell/system/impl/ProcessImpl.java @@ -371,7 +371,8 @@ public class ProcessImpl implements Process { handler.handle(process); } catch (Throwable t) { logger.error("Error during processing the command:", t); - process.write("Error during processing the command: " + t.getMessage() + "\n"); + process.write("Error during processing the command, exception type: " + t.getClass().getName() + ", message:" + t.getMessage() + + ", please check $HOME/logs/arthas/arthas.log for more details. \n"); terminate(1, null); } }