File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -140,7 +140,7 @@ You can custom the default errors handler using configuration:
140
140
overblog_graphql:
141
141
errors_handler:
142
142
enabled: true # false will totally disabled errors handling
143
- internal_error_message: ~ # custom generic error message
143
+ internal_error_message: 'Internal error occured' # custom generic error message
144
144
rethrow_internal_exceptions: false # re-throw internal exception
145
145
debug: false # will add trace stack and debugMessage to error
146
146
log: true # false will disabled the default logging behavior
Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ private function errorsHandlerSection(): ArrayNodeDefinition
92
92
->addDefaultsIfNotSet ()
93
93
->children ()
94
94
->booleanNode ('enabled ' )->defaultTrue ()->end ()
95
- ->scalarNode ('internal_error_message ' )->defaultValue (ErrorHandler::DEFAULT_ERROR_MESSAGE )->end ()
95
+ ->scalarNode ('internal_error_message ' )->defaultValue (ErrorHandler::DEFAULT_ERROR_MESSAGE )->cannotBeEmpty ()-> end ()
96
96
->booleanNode ('rethrow_internal_exceptions ' )->defaultFalse ()->end ()
97
97
->booleanNode ('debug ' )->defaultValue ($ this ->debug )->end ()
98
98
->booleanNode ('log ' )->defaultTrue ()->end ()
You can’t perform that action at this time.
0 commit comments