onreqerror: Do not log aborted "errors"
Some checks failed
continuous-integration/appveyor/branch AppVeyor build failed
Some checks failed
continuous-integration/appveyor/branch AppVeyor build failed
This commit is contained in:
parent
975646d336
commit
3a454d44ce
2 changed files with 3 additions and 5 deletions
|
@ -612,12 +612,10 @@ export class Flaska {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
this._onreqerror = function(err, ctx) {
|
this._onreqerror = function(err, ctx) {
|
||||||
if (err.message === 'aborted') {
|
if (err.message !== 'aborted') {
|
||||||
ctx.log.info(err)
|
|
||||||
} else {
|
|
||||||
ctx.log.error(err)
|
ctx.log.error(err)
|
||||||
}
|
|
||||||
ctx.res.statusCode = ctx.statusCode = 400
|
ctx.res.statusCode = ctx.statusCode = 400
|
||||||
|
}
|
||||||
ctx.res.end()
|
ctx.res.end()
|
||||||
}
|
}
|
||||||
this._onreserror = function(err, ctx) {
|
this._onreserror = function(err, ctx) {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "flaska",
|
"name": "flaska",
|
||||||
"version": "1.2.1",
|
"version": "1.2.2",
|
||||||
"description": "Flaska is a micro web-framework for node. It is designed to be fast, simple and lightweight, and is distributed as a single file module with no dependencies.",
|
"description": "Flaska is a micro web-framework for node. It is designed to be fast, simple and lightweight, and is distributed as a single file module with no dependencies.",
|
||||||
"main": "flaska.mjs",
|
"main": "flaska.mjs",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
Loading…
Reference in a new issue