From 21b2ec44cab1162c144e3621af420483e5e0383c Mon Sep 17 00:00:00 2001 From: Jordan Hury Date: Thu, 2 Jul 2026 15:20:20 +0300 Subject: [PATCH] XRAY-145620 - Distinguish zero-module config profile errors. Report actual module count in the validation error message. Co-authored-by: Cursor --- utils/params.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/params.go b/utils/params.go index c298e5226..3d20dde60 100644 --- a/utils/params.go +++ b/utils/params.go @@ -923,7 +923,7 @@ func getConfigProfileIfExistsAndValid(xrayVersion string, jfrogServer *coreconfi func verifyConfigProfileValidity(configProfile *services.ConfigProfile) (err error) { // Currently, only a single Module that represents the entire project is supported if len(configProfile.Modules) != 1 { - err = fmt.Errorf("more than one module was found '%s' profile. Frogbot currently supports only one module per config profile", configProfile.ProfileName) + err = fmt.Errorf("expected exactly 1 module in '%s' profile, found %d. Frogbot currently supports only one module per config profile", configProfile.ProfileName, len(configProfile.Modules)) return } if configProfile.Modules[0].PathFromRoot != "." {