From d80cd915d1eaeaaec9e03a455b348a34a0e5c6b8 Mon Sep 17 00:00:00 2001 From: Blake Rouse Date: Mon, 1 Mar 2021 16:22:52 -0500 Subject: [PATCH] Add missing err check. (#24281) (cherry picked from commit a5293383a1e020855a5d39d6d04c28d7c6ee4dce) --- x-pack/elastic-agent/pkg/agent/application/application.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/x-pack/elastic-agent/pkg/agent/application/application.go b/x-pack/elastic-agent/pkg/agent/application/application.go index c13157e02f52..c88cca8fc3c6 100644 --- a/x-pack/elastic-agent/pkg/agent/application/application.go +++ b/x-pack/elastic-agent/pkg/agent/application/application.go @@ -78,6 +78,9 @@ func createApplication( // not in standalone; both modes require reading the fleet.yml configuration file var store storage.Store store, cfg, err = mergeFleetConfig(rawConfig) + if err != nil { + return nil, err + } if IsFleetServerBootstrap(cfg.Fleet) { log.Info("Agent is in Fleet Server bootstrap mode")