PR feedback
This commit is contained in:
parent
e249d4a0bc
commit
3566b9309d
2 changed files with 3 additions and 4 deletions
|
@ -2,12 +2,10 @@ namespace Microsoft.DotNet.Tools.New
|
|||
{
|
||||
internal class LocalizableStrings
|
||||
{
|
||||
public const string CreatingNewError = "Creating new ";
|
||||
public const string CreatingNewError = "Creating new {0} project failed, project already exists.";
|
||||
|
||||
public const string CreatedNew = "Created new ";
|
||||
|
||||
public const string CreatingNewError2 = " project failed, project already exists.";
|
||||
|
||||
public const string DirectoryContainsError = " project failed, directory already contains ";
|
||||
|
||||
public const string ProjectFailedError = " project failed.";
|
||||
|
|
|
@ -33,7 +33,8 @@ namespace Microsoft.DotNet.Tools.New
|
|||
// Check if project.json exists in the folder
|
||||
if (File.Exists(Path.Combine(Directory.GetCurrentDirectory(), "project.json")) && !isMsBuild)
|
||||
{
|
||||
Reporter.Error.WriteLine($"{LocalizableStrings.CreatingNewError}{languageName}{LocalizableStrings.CreatingNewError2}");
|
||||
Reporter.Error.WriteLine(String.Format(LocalizableStrings.CreatingNewError,languageName));
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue