envoid/internal/errors/invalid_command.go
Sagi Dayan 0de49e6cdb
Some checks failed
CI / check for spelling errors (pull_request) Successful in 21s
CI / code quality (lint/tests) (pull_request) Failing after 18s
CI / make sure build does not fail (pull_request) Has been skipped
CI / notify-fail (pull_request) Successful in 14s
Added lint to the CI. formatted all code accordingly
Signed-off-by: Sagi Dayan <sagidayan@gmail.com>
2024-12-17 13:09:21 +02:00

13 lines
255 B
Go

package errors
type InvalidCommandError struct {
msg string
}
func (e *InvalidCommandError) Error() string {
return "invalid command. " + e.msg
}
func NewInvalidCommandError(msg string) *InvalidCommandError {
return &InvalidCommandError{msg: msg}
}