diff --git a/base/web/space.go b/base/web/space.go index 7ff29393..0ec5b2c1 100644 --- a/base/web/space.go +++ b/base/web/space.go @@ -185,8 +185,11 @@ func _space_exec(m *ice.Message, name string, source, target []string, c *websoc ) m.Push(mdb.LINK, m.MergePod(kit.Select("", source, -1))) default: - m.Options("__target", kit.Reverse(kit.Simple(source))).OptionDefault(ice.MSG_COUNT, "0") - m.Option(ice.MSG_DAEMON, kit.Keys(kit.Slice(kit.Simple(m.Optionv("__target")), 0, -1), m.Option(ice.MSG_DAEMON))) + if m.IsErr() { + return + } + m.OptionDefault(ice.MSG_COUNT, "0") + m.Option(ice.MSG_DAEMON, kit.Keys(kit.Slice(kit.Reverse(kit.Simple(source)), 0, -1), m.Option(ice.MSG_DAEMON))) kit.If(aaa.Right(m, m.Detailv()), func() { m.TryCatch(true, func(_ *ice.Message) { m = m.Cmd() }) }) } defer m.Cost(kit.Format("%v->%v %v %v", source, target, m.Detailv(), m.FormatSize())) diff --git a/exec.go b/exec.go index 8f4d2fe1..84f8ecd9 100644 --- a/exec.go +++ b/exec.go @@ -156,7 +156,7 @@ func (m *Message) _command(arg ...Any) *Message { } } } - if count := kit.Int(m.Option(MSG_COUNT, kit.Format(kit.Int(m.Option(MSG_COUNT))+1))); m.Warn(count > 3000, ErrTooDeepCount) { + if count := kit.Int(m.Option(MSG_COUNT, kit.Format(kit.Int(m.Option(MSG_COUNT))+1))); m.Warn(count > 300, ErrTooDeepCount) { panic(count) } list := kit.Simple(args...)