From d1997800110a8f929030a43bccda3082534cf08c Mon Sep 17 00:00:00 2001 From: Blake Rouse Date: Mon, 1 Mar 2021 14:33:22 -0500 Subject: [PATCH] Add missing err check. --- 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 c13157e02f5..c88cca8fc3c 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")