Skip to content

Commit

Permalink
Update error message (#8086)
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 authored Sep 20, 2024
1 parent 8949c4f commit 1c99dbc
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 @@ -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 {
Expand Down

0 comments on commit 1c99dbc

Please sign in to comment.