From bc5fd380e55252f360059d90b894ddbe60688d94 Mon Sep 17 00:00:00 2001 From: Dominik Pschenitschni Date: Thu, 18 Jul 2024 18:55:43 +0200 Subject: [PATCH] chore: improve error message --- frontend/src/i18n/lang/en.json | 4 ++-- pkg/models/error.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/i18n/lang/en.json b/frontend/src/i18n/lang/en.json index 2ac2d64ca..b842a0871 100644 --- a/frontend/src/i18n/lang/en.json +++ b/frontend/src/i18n/lang/en.json @@ -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.", diff --git a/pkg/models/error.go b/pkg/models/error.go index 25cb0a0b9..5be530d99 100644 --- a/pkg/models/error.go +++ b/pkg/models/error.go @@ -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