Merge pull request #2003 from gitbutlerapp/update-force-push-error-message

Update force push error message
This commit is contained in:
Nikita Galaiko 2023-12-12 12:25:23 +01:00 committed by GitHub
commit 472c2cac21
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -189,10 +189,7 @@ impl From<ForcePushNotAllowedError> 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(),
}
}
}