q-koa 7.9.9 → 8.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/core/app.js +2 -2
- package/package.json +1 -1
package/core/app.js
CHANGED
|
@@ -236,7 +236,7 @@ class APP {
|
|
|
236
236
|
) {
|
|
237
237
|
this.app[appName].model.log.upsert(errorData)
|
|
238
238
|
}
|
|
239
|
-
throw new Error(err)
|
|
239
|
+
throw new Error(err.message)
|
|
240
240
|
})
|
|
241
241
|
|
|
242
242
|
// this.app.on('message', async (content) => {
|
|
@@ -381,7 +381,7 @@ class APP {
|
|
|
381
381
|
} catch (e) {
|
|
382
382
|
console.log(`${appName}数据库连接失败`)
|
|
383
383
|
console.log(e)
|
|
384
|
-
throw new Error(e)
|
|
384
|
+
throw new Error(e.message)
|
|
385
385
|
}
|
|
386
386
|
if (
|
|
387
387
|
this.app[appName] &&
|