Fixes to PR.
This commit is contained in:
parent
21357d3fa5
commit
35c12cd972
1 changed files with 4 additions and 4 deletions
|
|
@ -723,10 +723,10 @@ proc init(options: Options) =
|
||||||
nimbleFile = pkgName.changeFileExt("nimble")
|
nimbleFile = pkgName.changeFileExt("nimble")
|
||||||
validatePackageName(nimbleFile.changeFileExt(""))
|
validatePackageName(nimbleFile.changeFileExt(""))
|
||||||
|
|
||||||
if existsFile(os.getCurrentDir() / nimbleFile):
|
let nimbleFilePath = os.getCurrentDir() / nimbleFile
|
||||||
let path = os.getCurrentDir() / nimbleFile
|
if existsFile(nimbleFilePath):
|
||||||
let errMsg = "Nimble file already exists: $#" % path
|
let errMsg = "Nimble file already exists: $#" % nimbleFilePath
|
||||||
raise newException(NimbleError, errMsg);
|
raise newException(NimbleError, errMsg)
|
||||||
|
|
||||||
display("Using", "$# for new package name" % [pkgName.escape()],
|
display("Using", "$# for new package name" % [pkgName.escape()],
|
||||||
priority = HighPriority)
|
priority = HighPriority)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue