mirror of
https://github.com/gomods/athens
synced 2026-02-10 14:38:12 +00:00
* almost there * loading file * fixed after real test * fixed includes" * configurable filter name * custom error
19 lines
432 B
Go
19 lines
432 B
Go
package module
|
|
|
|
import "fmt"
|
|
|
|
// ErrModuleExcluded is error returned when processing of error is skipped
|
|
// due to filtering rules
|
|
type ErrModuleExcluded struct {
|
|
module string
|
|
}
|
|
|
|
func (e *ErrModuleExcluded) Error() string {
|
|
return fmt.Sprintf("Module %s is excluded", e.module)
|
|
}
|
|
|
|
// NewErrModuleExcluded creates new ErrModuleExcluded
|
|
func NewErrModuleExcluded(module string) error {
|
|
return &ErrModuleExcluded{module: module}
|
|
}
|