add test normal response for send message
This commit is contained in:
+4
-1
@@ -127,7 +127,10 @@ func GetMsgs(soap string) []string {
|
||||
func GetErrMsg(soap string) string {
|
||||
r, _ := regexp.Compile(errExp)
|
||||
msg := r.FindAllString(soap, -1)
|
||||
if len(msg) > 0 && len(msg[0]) > 40 {
|
||||
if len(msg) < 1 {
|
||||
return ""
|
||||
}
|
||||
if len(msg[0]) > 40 {
|
||||
size := len(msg[0])
|
||||
return msg[0][54 : size-15]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user