chore: improve error message
(cherry picked from commit bc5fd380e55252f360059d90b894ddbe60688d94)
This commit is contained in:
parent
fc780a90ae
commit
6e38bcf349
@ -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.",
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user