Skip to content
Prev Previous commit
Next Next commit
Take @danmosely suggestion to change the exception message
  • Loading branch information
los93sol committed Oct 28, 2024
commit 7e21b6fd00cd50ed2bc90f7306fdcf2a84cd9b7d
2 changes: 1 addition & 1 deletion src/Aspire.Hosting/Utils/VolumeNameGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public static string CreateVolumeName<T>(IResourceBuilder<T> builder, string suf
{
if (!HasOnlyValidChars(suffix))
{
throw new ArgumentException($"The suffix '{suffix}' contains invalid characters. It must match [a-zA-Z0-9][a-zA-Z0-9_.-]*.", nameof(suffix));
throw new ArgumentException($"The suffix '{suffix}' contains invalid characters. Only [a-zA-Z0-9_.-] are allowed.", nameof(suffix));
}

// Create volume name like "{Sanitize(appname).Lower()}-{sha256.Lower()}-postgres-data"
Expand Down