1
0
mirror of https://shylinux.com/x/icebergs synced 2025-04-26 09:34:05 +08:00

action opt text some

This commit is contained in:
shaoying 2020-08-14 14:38:36 +08:00
parent 073851ee66
commit 06e6de20c7
2 changed files with 3 additions and 1 deletions

View File

@ -114,7 +114,7 @@ func _space_send(m *ice.Message, space string, arg ...string) {
return nil return nil
}) })
} }
}) == nil, "not found %s", space) }) == nil, ice.ErrNotFound, space)
} }
func _space_echo(msg *ice.Message, source, target []string, c *websocket.Conn, name string) { func _space_echo(msg *ice.Message, source, target []string, c *websocket.Conn, name string) {

View File

@ -10,7 +10,9 @@ import (
var ErrWarn = "warn: " var ErrWarn = "warn: "
var ErrNotAuth = "not auth: " var ErrNotAuth = "not auth: "
var ErrNotJoin = "not join: "
var ErrNotFound = "not found: " var ErrNotFound = "not found: "
var ErrNotEnough = "not enough: "
func (m *Message) log(level string, str string, arg ...interface{}) *Message { func (m *Message) log(level string, str string, arg ...interface{}) *Message {
if str = strings.TrimSpace(kit.Format(str, arg...)); Log != nil { if str = strings.TrimSpace(kit.Format(str, arg...)); Log != nil {