apply review feedback

I fix.
This commit is contained in:
shinriyo 2018-03-21 12:09:24 +09:00 committed by GitHub
commit 21357d3fa5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -724,7 +724,9 @@ proc init(options: Options) =
validatePackageName(nimbleFile.changeFileExt(""))
if existsFile(os.getCurrentDir() / nimbleFile):
raise newException(NimbleError, ".nimble file already exists.")
let path = os.getCurrentDir() / nimbleFile
let errMsg = "Nimble file already exists: $#" % path
raise newException(NimbleError, errMsg);
display("Using", "$# for new package name" % [pkgName.escape()],
priority = HighPriority)