chore(dev): improve missing provider panic string

This commit is contained in:
Quentin McGaw
2022-09-05 14:51:30 +00:00
parent 907daff483
commit 45b7da1058
2 changed files with 4 additions and 2 deletions

View File

@@ -51,7 +51,8 @@ func (s *Storage) extractServersFromBytes(b []byte, hardcodedVersions map[string
for _, provider := range allProviders {
hardcodedVersion, ok := hardcodedVersions[provider]
if !ok {
panic(fmt.Sprintf("provider %s not found in hardcoded servers map", provider))
panic(fmt.Sprintf("provider %s not found in hardcoded servers map; "+
"did you add the provider key in the embedded servers.json?", provider))
}
rawMessage, ok := rawMessages[provider]