summaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorLoyalsoldier <[email protected]>2024-08-15 12:51:53 +0800
committerLoyalsoldier <[email protected]>2024-08-15 12:52:36 +0800
commitd0640792bf956f5517e3684025564fae8016a49e (patch)
tree6cbbc5bfbf43759a930f9a88f26bf851474f603c /plugin
parentf6ff18584da4706ff62936ce7bc0d9fa1f154c51 (diff)
Fix: wantedList must be specified in cutter format
Diffstat (limited to 'plugin')
-rw-r--r--plugin/special/cutter.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugin/special/cutter.go b/plugin/special/cutter.go
index fd4dcb59..2d52e161 100644
--- a/plugin/special/cutter.go
+++ b/plugin/special/cutter.go
@@ -46,6 +46,10 @@ func newCutter(action lib.Action, data json.RawMessage) (lib.InputConverter, err
}
}
+ if len(wantList) == 0 {
+ return nil, fmt.Errorf("type %s wantedList must be specified", typeCutter)
+ }
+
return &cutter{
Type: typeCutter,
Action: action,