Skip to content

Commit eb239e6

Browse files
committed
Merged PR 723148: Make malformed secret error more readable
We used to print: `Failed to match s_storageUrlRegex to PlainTextSecret` which users found hard to interpret.
1 parent 6125dac commit eb239e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Public/Src/Cache/ContentStore/Interfaces/Secrets/AzureStorageCredentials.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public string GetAccountName()
6565
return match.Groups["accountName"].Value;
6666
}
6767

68-
throw new InvalidOperationException($"Failed to match {nameof(s_storageUrlRegex)} to {nameof(PlainTextSecret)}");
68+
throw new InvalidOperationException($"The provided secret is malformed and the account name could not be retrieved.");
6969
case UpdatingSasToken updatingSasToken:
7070
return updatingSasToken.Token.StorageAccount;
7171
default:

0 commit comments

Comments
 (0)