1
0
mirror of https://github.com/rancher/os.git synced 2025-09-02 07:15:41 +00:00

Tell the user if the interpreted cloud confg is invalid and then exit

Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
This commit is contained in:
Sven Dowideit
2017-07-17 12:17:41 +10:00
parent 7fb9afe39c
commit cbcdb2628c
4 changed files with 19 additions and 3 deletions

View File

@@ -94,6 +94,7 @@ func sysInit(c *config.CloudConfig) (*config.CloudConfig, error) {
func MainInit() {
log.InitDeferedLogger()
// TODO: this breaks and does nothing if the cfg is invalid (or is it due to threading?)
defer func() {
if r := recover(); r != nil {
fmt.Printf("Starting Recovery console: %v\n", r)