waibu 1.1.5 → 1.1.6

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.
@@ -36,7 +36,8 @@ async function buildLocals ({ tpl, params = {}, opts = {} } = {}) {
36
36
  if (params.error) {
37
37
  if (params.error.statusCode) _meta.statusCode = params.error.statusCode
38
38
  _meta.errorMessage = params.error.message
39
- if (this.app.bajo.config.env === 'dev') console.log(params.error)
39
+ this.log.error('error%s', params.error.message)
40
+ if (this.app.bajo.config.env === 'dev') console.log(params.err)
40
41
  }
41
42
  if (reply && req.session && req.flash && !opts.partial) _meta.flash = reply.flash()
42
43
  const merged = merge({}, params, { _meta })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "waibu",
3
- "version": "1.1.5",
3
+ "version": "1.1.6",
4
4
  "description": "Web Framework for Bajo",
5
5
  "main": "index.js",
6
6
  "scripts": {