简化错误反馈

This commit is contained in:
iyear 2020-04-08 13:51:43 +08:00
parent a3cc7591d6
commit 9bb40d8a78

View File

@ -112,13 +112,13 @@ func SignTask() {
se := u.msId + " ( @" + chat.Username + " )"
if err != nil {
logger.Println(u.msId+" ", err)
bot.Send(chat, pre+err.Error(), tmpBtn)
bot.Send(chat, pre+gjson.Get(err.Error(), "error").String(), tmpBtn)
SignErr = append(SignErr, se)
continue
}
if ok, err := OutLookGetMails(access); !ok {
logger.Println(u.msId+" ", err)
bot.Send(chat, pre+err.Error(), tmpBtn)
bot.Send(chat, pre+gjson.Get(err.Error(), "error").String(), tmpBtn)
SignErr = append(SignErr, se)
continue
}