Skip to content

Commit

Permalink
cherry pick Update error message #8086 to v1.0 (#8087)
Browse files Browse the repository at this point in the history
* fix(project): project cannot be deleted when its pipelines are not finished

* chore(framework): update error message
  • Loading branch information
d4x1 committed Sep 20, 2024
1 parent a1933f3 commit e888cec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion backend/server/services/blueprint.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion backend/server/services/project.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit e888cec

Please sign in to comment.