豆豆友情提示:这是一个非官方 GitHub 代理镜像,主要用于网络测试或访问加速。请勿在此进行登录、注册或处理任何敏感信息。进行这些操作请务必访问官方网站 github.com。 Raw 内容也通过此代理提供。
Skip to content

Commit 53ae653

Browse files
committed
Fixed Local source non exist error message
1 parent bd45e2d commit 53ae653

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

src/NuGet.Core/NuGet.Protocol/LocalRepositories/LocalV3FindPackageByIdResource.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -402,8 +402,7 @@ private List<NuGetVersion> GetVersionsCore(string id, ILogger logger)
402402
// Fail if the root directory does not exist at all.
403403
var message = string.Format(
404404
CultureInfo.CurrentCulture,
405-
Strings.Log_FailedToRetrievePackage,
406-
id,
405+
Strings.Log_LocalSourceNotExist,
407406
_source);
408407

409408
throw new FatalProtocolException(message);

src/NuGet.Core/NuGet.Protocol/Strings.Designer.cs

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/NuGet.Core/NuGet.Protocol/Strings.resx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -466,4 +466,7 @@ The "ms" should be localized to the abbreviation for milliseconds.</comment>
466466
<comment>{0} is the plugin name
467467
{1} is the exception ToString() result</comment>
468468
</data>
469+
<data name="Log_LocalSourceNotExist" xml:space="preserve">
470+
<value>The local source '{0}' doesn't exist.</value>
471+
</data>
469472
</root>

0 commit comments

Comments
 (0)