Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion utils/getconfiguration.go
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ func validateConfigProfile(configProfile *services.ConfigProfile) error {
}

if len(configProfile.Modules) != 1 {
return fmt.Errorf("%s config profile returned with %d modules. A profile must have exactly 1 module", configProfile.ProfileName, len(configProfile.Modules))
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 != "." {
Expand Down
4 changes: 2 additions & 2 deletions utils/getconfiguration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ func TestValidateConfigProfile(t *testing.T) {
ProfileName: "my-profile",
Modules: []services.Module{},
},
expectedError: "my-profile config profile returned with 0 modules. A profile must have exactly 1 module",
expectedError: "expected exactly 1 module in 'my-profile' profile, found 0. Frogbot currently supports only one module per config profile",
},
{
name: "Multiple modules",
Expand All @@ -394,7 +394,7 @@ func TestValidateConfigProfile(t *testing.T) {
{ModuleName: "module-2", PathFromRoot: "subdir"},
},
},
expectedError: "my-profile config profile returned with 2 modules. A profile must have exactly 1 module",
expectedError: "expected exactly 1 module in 'my-profile' profile, found 2. Frogbot currently supports only one module per config profile",
},
{
name: "Module path not at root",
Expand Down
Loading