mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-01-29 00:35:38 +08:00
fix: improve logging format for old shortcut removal failure
This commit is contained in:
@@ -45,7 +45,7 @@ pub fn create_shortcut() -> Result<()> {
|
|||||||
// 移除旧的快捷方式
|
// 移除旧的快捷方式
|
||||||
if old_shortcut_path.exists() {
|
if old_shortcut_path.exists() {
|
||||||
if let Err(e) = fs::remove_file(&old_shortcut_path) {
|
if let Err(e) = fs::remove_file(&old_shortcut_path) {
|
||||||
info!(target: "app", "移除旧快捷方式失败: {}", e);
|
info!(target: "app", "移除旧快捷方式失败: {e}");
|
||||||
} else {
|
} else {
|
||||||
info!(target: "app", "成功移除旧快捷方式");
|
info!(target: "app", "成功移除旧快捷方式");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user