Enable express error handler (#4697)
* Propagate error to express handler in all situations * Call the default error handler if `enableExpressErrorHandler` is truthy * Updating options interface and definitions * Testing express error handler * Test spec fixes * Fix test
This commit is contained in:
committed by
Florent Vilmart
parent
ced6b76ef5
commit
b22947d4ec
@@ -262,6 +262,12 @@ module.exports.ParseServerOptions = {
|
||||
"action": parsers.booleanParser,
|
||||
"default": false
|
||||
},
|
||||
"enableExpressErrorHandler": {
|
||||
"env": "PARSE_SERVER_ENABLE_EXPRESS_ERROR_HANDLER",
|
||||
"help": "Enables the default express error handler for all errors",
|
||||
"action": parsers.booleanParser,
|
||||
"default": false
|
||||
},
|
||||
"objectIdSize": {
|
||||
"env": "PARSE_SERVER_OBJECT_ID_SIZE",
|
||||
"help": "Sets the number of characters in generated object id's, default 10",
|
||||
|
||||
Reference in New Issue
Block a user