Files
mattermost/app
Pierre de La Morinerie 809a16458f Abort on critical error during server startup (#8204)
Only a handful of critical errors are present in the codebase.
They all occur during server startup (in `app.StartServer()`).

Currently, when one of these critical error occurs, it is simpled
mentionned in the logs – then the error is discarded, and the app
attempts to continue the execution (and probably fails pretty quickly in
a weird way).

Rather than continuing operations in an unknow state, these errors should
trigger a clean exit.

This commit rewrites critical startup errors to be correctly
propagated, logged, and then terminate the command execution.
Additionnaly, it makes the server return a proper error code to the
shell.
2018-02-07 02:11:15 -06:00
..
2018-01-12 09:02:11 -05:00
2018-01-12 09:02:11 -05:00
2017-09-06 23:11:59 -07:00
2017-11-21 11:08:32 -08:00
2017-11-21 11:08:32 -08:00
2017-09-06 23:11:59 -07:00
2017-10-30 11:57:24 -05:00
2017-10-30 11:57:24 -05:00
2017-10-18 15:36:43 -07:00
2018-01-12 09:02:11 -05:00
2017-10-30 11:57:24 -05:00
2018-01-17 13:38:37 -05:00
2017-10-18 15:36:43 -07:00
2018-01-17 13:38:37 -05:00
2017-10-03 10:53:53 -05:00
2017-11-21 11:08:32 -08:00
2017-09-06 23:11:59 -07:00
2017-10-30 11:57:24 -05:00
2018-01-17 13:38:37 -05:00
2017-11-22 10:15:03 -05:00