1
0
mirror of https://github.com/go-task/task.git synced 2025-06-17 00:17:51 +02:00

cyclic: refactor to return error instead

This commit is contained in:
Andrey Nering
2017-07-08 10:13:56 -03:00
parent 9bea80b862
commit 06031efc09
4 changed files with 19 additions and 21 deletions

View File

@ -6,8 +6,8 @@ import (
)
var (
// ErrCyclicDependencyDetected is returned when a cyclic dependency was found in the Taskfile
ErrCyclicDependencyDetected = errors.New("task: cyclic dependency detected")
// ErrCyclicDepDetected is returned when a cyclic dependency was found in the Taskfile
ErrCyclicDepDetected = errors.New("task: cyclic dependency detected")
// ErrTaskfileAlreadyExists is returned on creating a Taskfile if one already exists
ErrTaskfileAlreadyExists = errors.New("task: A Taskfile already exists")
)