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:
140140overblog_graphql:
141141 errors_handler:
142142 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
144144 rethrow_internal_exceptions: false # re-throw internal exception
145145 debug: false # will add trace stack and debugMessage to error
146146 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
9292 ->addDefaultsIfNotSet ()
9393 ->children ()
9494 ->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 ()
9696 ->booleanNode ('rethrow_internal_exceptions ' )->defaultFalse ()->end ()
9797 ->booleanNode ('debug ' )->defaultValue ($ this ->debug )->end ()
9898 ->booleanNode ('log ' )->defaultTrue ()->end ()
You can’t perform that action at this time.
0 commit comments