ls 2 anni fa
parent
commit
df1476d7f4
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2 0
      db/config.go

+ 2 - 0
db/config.go

@@ -87,6 +87,8 @@ func ReplyToReplyData(reply Reply) *myth.ReplyData {
 			status = myth.ErrNotAllowed
 		case ErrCreditLimit:
 			status = myth.ErrNotAllowed
+		default:
+			status = myth.ErrException
 		}
 		return myth.ReplyErr(status, reply.LastErr.Error())
 	}