mirror of
https://e.coding.net/circlecloud/Yum.git
synced 2024-10-31 20:28:47 +00:00
fix: 修复lasterror命令显示问题
Signed-off-by: 502647092 <admin@yumc.pw>
This commit is contained in:
parent
31a2277672
commit
66c7508009
@ -219,10 +219,8 @@ public class MonitorCommand implements CommandExecutor {
|
||||
return;
|
||||
}
|
||||
final Plugin plugin = PluginKit.getOperatePlugin(lastError.getStackTrace());
|
||||
if (plugin != null) {
|
||||
sender.sendMessage(String.format(last_error, plugin.getName()));
|
||||
lastError.printStackTrace();
|
||||
}
|
||||
sender.sendMessage(String.format(last_error, plugin != null ? plugin.getName() : "未知"));
|
||||
lastError.printStackTrace();
|
||||
}
|
||||
|
||||
@Cmd
|
||||
|
Loading…
Reference in New Issue
Block a user