From 3f58d05aa7b33a9250fde77129b93da690024539 Mon Sep 17 00:00:00 2001 From: GyDi Date: Fri, 19 Aug 2022 17:11:59 +0800 Subject: [PATCH] fix: adjust log text --- src-tauri/src/core/profiles.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src-tauri/src/core/profiles.rs b/src-tauri/src/core/profiles.rs index 16b75ec..6b4d6e1 100644 --- a/src-tauri/src/core/profiles.rs +++ b/src-tauri/src/core/profiles.rs @@ -121,7 +121,7 @@ impl Profiles { } } - bail!("failed to get the item by \"{}\"", uid); + bail!("failed to get the profile item \"uid:{uid}\""); } /// append new item @@ -178,7 +178,7 @@ impl Profiles { } self.items = Some(items); - bail!("failed to found the uid \"{uid}\"") + bail!("failed to find the profile item \"uid:{uid}\"") } /// be used to update the remote item @@ -286,7 +286,7 @@ impl Profiles { return Ok(config::read_yaml::(file_path.clone())); } } - bail!("failed to found the uid \"{current}\""); + bail!("failed to find current profile \"uid:{current}\""); } /// generate the data for activate clash config