nix-amer/internal/instruction/errors.go

16 lines
547 B
Go
Raw Normal View History

package instruction
import (
"errors"
)
// ErrInvalidAlias is raised when encountering an invalid token in an alias name
var ErrInvalidAlias = errors.New("invalid alias name (contains '/')")
2018-11-11 18:01:00 +00:00
// ErrInvalidSyntax is raised when encountering an invalid token
var ErrInvalidSyntax = errors.New("invalid instruction format")
2018-11-11 18:01:00 +00:00
// ErrUnknownInstruction is raised when encountering an unknown instruction
// it can mean that you're not using the right version or that you've misspelled it
var ErrUnknownInstruction = errors.New("unknown instruction")