diff options
| author | Xe Iaso <me@xeiaso.net> | 2025-04-23 00:01:54 -0400 |
|---|---|---|
| committer | Xe Iaso <me@xeiaso.net> | 2025-04-23 00:01:54 -0400 |
| commit | 31be467787fdaaf5f8619d22412b991ed416f04a (patch) | |
| tree | 9f8b7de1639f72c8812fc84777367bec68892530 /lib/policy | |
| parent | 23b2214bbe8f41e4c5c4054797ef6b0a50833aba (diff) | |
| download | anubis-Xe/split-config-file.tar.xz anubis-Xe/split-config-file.zip | |
style(lib/policy/config): use an error value instead of an inline errorXe/split-config-file
Signed-off-by: Xe Iaso <me@xeiaso.net>
Diffstat (limited to 'lib/policy')
| -rw-r--r-- | lib/policy/config/config.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/policy/config/config.go b/lib/policy/config/config.go index 5352818..627e9cf 100644 --- a/lib/policy/config/config.go +++ b/lib/policy/config/config.go @@ -235,7 +235,7 @@ type BotOrImport struct { func (boi *BotOrImport) Valid() error { if boi.BotConfig != nil && boi.ImportStatement != nil { - return errors.New("[unexpected] can't set bot config and import statement") + return ErrCantSetBotAndImportValuesAtOnce } if boi.BotConfig != nil { |
