fix: error msg not correct

This commit is contained in:
ReaJason
2025-07-20 13:12:28 +08:00
parent 4611dc639c
commit bc55b5cf84
@@ -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);
}
}
}