From 3d4d1e114de33b0bda5ed4fec24c72ec42b9a0cb Mon Sep 17 00:00:00 2001 From: Jordan Hury Date: Thu, 2 Jul 2026 10:27:33 +0300 Subject: [PATCH] XRAY-145620 - Report actual module count in git audit config profile error. Align jf git audit validation message with Frogbot when a centralized config profile does not have exactly one module. Co-authored-by: Cursor --- commands/git/audit/gitaudit.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/git/audit/gitaudit.go b/commands/git/audit/gitaudit.go index c7835af3a..dee9974fc 100644 --- a/commands/git/audit/gitaudit.go +++ b/commands/git/audit/gitaudit.go @@ -91,7 +91,7 @@ func getJPDConfigProfile(params GitAuditParams) (*services.ConfigProfile, error) func verifyConfigProfile(configProfile *services.ConfigProfile) error { if len(configProfile.Modules) != 1 { - return fmt.Errorf("more than one module was found '%s' profile. Frogbot currently supports only one module per config profile", configProfile.ProfileName) + return 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)) } if configProfile.Modules[0].PathFromRoot != "." { return fmt.Errorf("module '%s' in profile '%s' contains the following path from root: '%s'. Frogbot currently supports only a single module with a '.' path from root", configProfile.Modules[0].ModuleName, configProfile.ProfileName, configProfile.Modules[0].PathFromRoot)