This is an automated email from the ASF dual-hosted git repository.
lynwee pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git
The following commit(s) were added to refs/heads/main by this push:
new 1c99dbc90 Update error message (#8086)
1c99dbc90 is described below
commit 1c99dbc90094ac3b598b674adaa5d4cbd275304a
Author: Lynwee <[email protected]>
AuthorDate: Fri Sep 20 19:20:52 2024 +0800
Update error message (#8086)
* fix(project): project cannot be deleted when its pipelines are not
finished
* chore(framework): update error message
---
backend/server/services/blueprint.go | 2 +-
backend/server/services/project.go | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/backend/server/services/blueprint.go
b/backend/server/services/blueprint.go
index 037149d0b..4d106674d 100644
--- a/backend/server/services/blueprint.go
+++ b/backend/server/services/blueprint.go
@@ -243,7 +243,7 @@ func DeleteBlueprint(id uint64) errors.Error {
return err
}
if pipelinesAreUnfinished {
- return errors.Default.New("There are unfinished pipelines under
current blueprint. It can not be deleted now.")
+ return errors.Default.New("There are unfinished pipelines in
the current project. It cannot be deleted at this time.")
}
err = bpManager.DeleteBlueprint(bp.ID)
if err != nil {
diff --git a/backend/server/services/project.go
b/backend/server/services/project.go
index 11ce1be78..98c9600a0 100644
--- a/backend/server/services/project.go
+++ b/backend/server/services/project.go
@@ -365,7 +365,7 @@ func DeleteProject(name string) errors.Error {
return err
}
if pipelinesAreUnfinished {
- return errors.Default.New("There are unfinished pipelines under
current project. It can not be deleted now.")
+ return errors.Default.New("There are unfinished pipelines in
the current project. It cannot be deleted at this time.")
}
err = deleteProjectBlueprint(name)
if err != nil {