You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by ly...@apache.org on 2024/09/20 11:21:46 UTC

(incubator-devlake) branch cp10 created (now f54918776)

This is an automated email from the ASF dual-hosted git repository.

lynwee pushed a change to branch cp10
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git


      at f54918776 chore(framework): update error message

This branch includes the following new commits:

     new f54918776 chore(framework): update error message

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(incubator-devlake) 01/01: chore(framework): update error message

Posted by ly...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

lynwee pushed a commit to branch cp10
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git

commit f54918776ebdffa5da11bd753a62f063911cb7c4
Author: d4x1 <15...@qq.com>
AuthorDate: Fri Sep 20 19:13:02 2024 +0800

    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 8ef169781..c030a9af5 100644
--- a/backend/server/services/project.go
+++ b/backend/server/services/project.go
@@ -364,7 +364,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 {