From 1cd6220dda7da2846da5f08ee184004dd114bed6 Mon Sep 17 00:00:00 2001 From: Nikita Galaiko Date: Tue, 12 Dec 2023 12:20:17 +0100 Subject: [PATCH] do not include id into user facing error message --- packages/tauri/src/virtual_branches/errors.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/packages/tauri/src/virtual_branches/errors.rs b/packages/tauri/src/virtual_branches/errors.rs index e5394d254..9156b111f 100644 --- a/packages/tauri/src/virtual_branches/errors.rs +++ b/packages/tauri/src/virtual_branches/errors.rs @@ -189,10 +189,7 @@ impl From for Error { fn from(value: ForcePushNotAllowedError) -> Self { Error::UserError { code: crate::error::Code::Branches, - message: format!( - "Action will lead to force pushing, which is not allowed for project {}", - value.project_id - ), + message: "Action will lead to force pushing, which is not allowed for this".to_string(), } } }