Skip to content

Commit

Permalink
On package validation failure an actionable error message should be d…
Browse files Browse the repository at this point in the history
…isplayed. #3916 (#4031)
  • Loading branch information
xavierdecoster authored Jun 1, 2017
1 parent 73278d0 commit b0edded
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/NuGetGallery/Services/PackageService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -760,7 +760,7 @@ private static void ValidateNuGetPackageMetadata(PackageMetadata packageMetadata
throw new EntityException(Strings.NuGetPackagePropertyTooLong, "Title", "256");
}

if (packageMetadata.Version != null && packageMetadata.Version.ToString().Length > 64)
if (packageMetadata.Version != null && packageMetadata.Version.ToFullString().Length > 64)
{
throw new EntityException(Strings.NuGetPackagePropertyTooLong, "Version", "64");
}
Expand Down

0 comments on commit b0edded

Please sign in to comment.