From dcc9d4fdf2c130fedc36ac4628a29491aa5b4e06 Mon Sep 17 00:00:00 2001 From: Simon Larsen Date: Tue, 14 May 2024 10:05:54 +0100 Subject: [PATCH] Refactor error messages in main.go for better clarity and instructions --- InfrastructureAgent/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/InfrastructureAgent/main.go b/InfrastructureAgent/main.go index 2abd852b33..9473e52de7 100644 --- a/InfrastructureAgent/main.go +++ b/InfrastructureAgent/main.go @@ -143,7 +143,7 @@ func main() { case "run": err := prg.config.loadConfig() if os.IsNotExist(err) { - slog.Error("Service configuration not found. Please install the service properly.") + slog.Error("Service configuration not found. Please run 'oneuptime-infrastructure-agent install' to install the service.") os.Exit(2) } if err != nil { @@ -151,7 +151,7 @@ func main() { os.Exit(2) } if err != nil || prg.config.SecretKey == "" || prg.config.OneUptimeURL == "" { - slog.Error("Service configuration not found or is incomplete. Please install the service properly.") + slog.Error("Service configuration not found or is incomplete. Please run 'oneuptime-infrastructure-agent install' to install the service.") os.Exit(2) } err = s.Run()