1
0

chore: improve error message

(cherry picked from commit bc5fd380e55252f360059d90b894ddbe60688d94)
This commit is contained in:
Dominik Pschenitschni 2024-07-18 18:55:43 +02:00 committed by kolaente
parent fc780a90ae
commit 6e38bcf349
No known key found for this signature in database
GPG Key ID: F40E70337AB24C9B
2 changed files with 3 additions and 3 deletions

View File

@ -1154,8 +1154,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