From 7e93b5edf0666dfc6ab1ab3c63b8ed802e09526d Mon Sep 17 00:00:00 2001 From: zhuweiyou Date: Thu, 25 Jan 2018 14:07:33 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=95=B0=E6=8D=AE=E5=BA=93?= =?UTF-8?q?=E8=BF=9E=E6=8E=A5=E9=94=99=E8=AF=AF=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/database/mongo.js" | 1 + 1 file changed, 1 insertion(+) diff --git "a/\345\244\264\350\204\221\347\216\213\350\200\205/src/database/mongo.js" "b/\345\244\264\350\204\221\347\216\213\350\200\205/src/database/mongo.js" index 61e70ca..4effb70 100644 --- "a/\345\244\264\350\204\221\347\216\213\350\200\205/src/database/mongo.js" +++ "b/\345\244\264\350\204\221\347\216\213\350\200\205/src/database/mongo.js" @@ -6,5 +6,6 @@ const db = mongoose.connect('mongodb://localhost/tnwz', { }) db.once('open', () => console.log('连接数据库成功')) +db.on('error', err => console.error(err)) module.exports = db