summaryrefslogtreecommitdiffstats
path: root/models/task.go
diff options
context:
space:
mode:
authorPetr Vaněk <arkamar@atlas.cz>2022-06-24 15:51:37 +0200
committerGitHub <noreply@github.com>2022-06-24 15:51:37 +0200
commitd789d3646c086cec819f718c86a91f9a49c01dc9 (patch)
tree0c23fd056dc1516537f15a4eacd8f99e956651fd /models/task.go
parent48ef12b27cde7757f33ec54df7bb40094b301e49 (diff)
downloadgitea-d789d3646c086cec819f718c86a91f9a49c01dc9.tar.gz
gitea-d789d3646c086cec819f718c86a91f9a49c01dc9.zip
Fix typos related to ErrTaskDoesNotExist error (#20118)
Fixes: f2a3abc683ad ("Move migrating repository from frontend to backend (#6200)")
Diffstat (limited to 'models/task.go')
-rw-r--r--models/task.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/models/task.go b/models/task.go
index cabb96c608..67f04d9562 100644
--- a/models/task.go
+++ b/models/task.go
@@ -156,14 +156,14 @@ type ErrTaskDoesNotExist struct {
Type structs.TaskType
}
-// IsErrTaskDoesNotExist checks if an error is a ErrTaskIsNotExist.
+// IsErrTaskDoesNotExist checks if an error is a ErrTaskDoesNotExist.
func IsErrTaskDoesNotExist(err error) bool {
_, ok := err.(ErrTaskDoesNotExist)
return ok
}
func (err ErrTaskDoesNotExist) Error() string {
- return fmt.Sprintf("task is not exist [id: %d, repo_id: %d, type: %d]",
+ return fmt.Sprintf("task does not exist [id: %d, repo_id: %d, type: %d]",
err.ID, err.RepoID, err.Type)
}