diff options
Diffstat (limited to 'plugin')
| -rw-r--r-- | plugin/special/cutter.go | 4 |
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, |
