waibu 2.19.0 → 2.19.1
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/lib/handle-error.js +1 -1
- package/package.json +1 -1
- package/wiki/CHANGES.md +1 -0
package/lib/handle-error.js
CHANGED
|
@@ -16,7 +16,7 @@ async function handleError () {
|
|
|
16
16
|
const me = this
|
|
17
17
|
this.instance.setErrorHandler(async function (err, req, reply) {
|
|
18
18
|
if (err.message === '_notFound' || err.statusCode === 404) return await notFound.call(me, err, req, reply)
|
|
19
|
-
if (err.message === '_redirect' && err.
|
|
19
|
+
if (err.message === '_redirect' && err.path) return redirect.call(me, err, req, reply)
|
|
20
20
|
return await error.call(me, err, req, reply)
|
|
21
21
|
})
|
|
22
22
|
}
|
package/package.json
CHANGED
package/wiki/CHANGES.md
CHANGED
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
- [2.19.0] Simplify ```config.home``` to only accept object
|
|
9
9
|
- [2.19.0] Add ```options.redirectCode``` to ```reply.redirectTo()```
|
|
10
10
|
- [2.19.0] Home route config now read from ```req.getSetting()```
|
|
11
|
+
- [2.19.1] Bug fix in ```handle-error.js```
|
|
11
12
|
|
|
12
13
|
## 2026-06-12
|
|
13
14
|
|