mirror of
https://github.com/WiiLink24/wfc-server.git
synced 2026-03-21 17:44:58 -05:00
17 lines
352 B
Go
17 lines
352 B
Go
package gpsp
|
|
|
|
import (
|
|
"wwfc/common"
|
|
"wwfc/gpcm"
|
|
"wwfc/logging"
|
|
)
|
|
|
|
func replyError(moduleName string, connIndex uint64, err gpcm.GPError) {
|
|
logging.Error(moduleName, "Reply error:", err.ErrorString)
|
|
msg := err.GetMessage()
|
|
common.SendPacket(ServerName, connIndex, []byte(msg))
|
|
if err.Fatal {
|
|
common.CloseConnection(ServerName, connIndex)
|
|
}
|
|
}
|