We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7fa3cd0 commit c2ff9b2Copy full SHA for c2ff9b2
models/task.go
@@ -156,14 +156,14 @@ type ErrTaskDoesNotExist struct {
156
Type structs.TaskType
157
}
158
159
-// IsErrTaskDoesNotExist checks if an error is a ErrTaskIsNotExist.
+// IsErrTaskDoesNotExist checks if an error is a ErrTaskDoesNotExist.
160
func IsErrTaskDoesNotExist(err error) bool {
161
_, ok := err.(ErrTaskDoesNotExist)
162
return ok
163
164
165
func (err ErrTaskDoesNotExist) Error() string {
166
- 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]",
167
err.ID, err.RepoID, err.Type)
168
169
0 commit comments