[优化] 将部分在services中抛出异常使用error返回

This commit is contained in:
PandaX
2023-12-29 11:19:17 +08:00
parent 7669cc208a
commit 7abc0a6840
24 changed files with 534 additions and 440 deletions

View File

@@ -13,7 +13,7 @@ func TestNewRuleChainInstance(t *testing.T) {
if err != nil {
t.Error(err)
}
instance, errs := NewRuleChainInstance(buf)
instance, errs := NewRuleChainInstance("11", buf)
if len(errs) > 0 {
t.Error(errs[0])
}