diff options
author | Petr Vaněk <arkamar@atlas.cz> | 2022-06-24 15:51:37 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-24 15:51:37 +0200 |
commit | d789d3646c086cec819f718c86a91f9a49c01dc9 (patch) | |
tree | 0c23fd056dc1516537f15a4eacd8f99e956651fd /models/task.go | |
parent | 48ef12b27cde7757f33ec54df7bb40094b301e49 (diff) | |
download | gitea-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.go | 4 |
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) } |