chore: improve error message
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2024-07-18 18:55:43 +02:00
committed by konrad
parent bcd306b84d
commit bc5fd380e5
2 changed files with 3 additions and 3 deletions

View File

@ -1155,8 +1155,8 @@
"3006": "The project share does not exist.",
"3007": "A project with this identifier already exists.",
"3008": "The project is archived and can therefore only be accessed read only. This is also true for all tasks associated with this project.",
"4001": "The project task text cannot be empty.",
"4002": "The project task does not exist.",
"4001": "The task title cannot be empty.",
"4002": "The task does not exist.",
"4003": "All bulk editing tasks must belong to the same project.",
"4004": "Need at least one task when bulk editing tasks.",
"4005": "You do not have the right to see the task.",

View File

@ -476,7 +476,7 @@ func IsErrTaskDoesNotExist(err error) bool {
}
func (err ErrTaskDoesNotExist) Error() string {
return fmt.Sprintf("Project task does not exist. [ID: %d]", err.ID)
return fmt.Sprintf("The task does not exist. [ID: %d]", err.ID)
}
// ErrCodeTaskDoesNotExist holds the unique world-error code of this error