fix: error msg not correct

This commit is contained in:
ReaJason
2025-08-13 23:53:40 +08:00
parent 22f365b3a0
commit ec9aa97c83
@@ -34,7 +34,7 @@ public enum ShellTool {
ShellGenerator generator = constructor.newInstance(shellConfig, configClass.cast(shellToolConfig));
return generator.getBytes();
} catch (Exception e) {
throw new RuntimeException("Failed to create generator for " + this, e);
throw new RuntimeException("shell generate failed " + e.getMessage(), e);
}
}
}