Skip to content

Commit e888cec

Browse files
authored
cherry pick Update error message #8086 to v1.0 (#8087)
* fix(project): project cannot be deleted when its pipelines are not finished * chore(framework): update error message
1 parent a1933f3 commit e888cec

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

backend/server/services/blueprint.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ func DeleteBlueprint(id uint64) errors.Error {
243243
return err
244244
}
245245
if pipelinesAreUnfinished {
246-
return errors.Default.New("There are unfinished pipelines under current blueprint. It can not be deleted now.")
246+
return errors.Default.New("There are unfinished pipelines in the current project. It cannot be deleted at this time.")
247247
}
248248
err = bpManager.DeleteBlueprint(bp.ID)
249249
if err != nil {

backend/server/services/project.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ func DeleteProject(name string) errors.Error {
364364
return err
365365
}
366366
if pipelinesAreUnfinished {
367-
return errors.Default.New("There are unfinished pipelines under current project. It can not be deleted now.")
367+
return errors.Default.New("There are unfinished pipelines in the current project. It cannot be deleted at this time.")
368368
}
369369
err = deleteProjectBlueprint(name)
370370
if err != nil {

0 commit comments

Comments
 (0)