Don't fail immediately when user doesn't want to load packages.json.
This commit is contained in:
parent
a5f325f032
commit
5f1de1e4ff
1 changed files with 3 additions and 1 deletions
|
|
@ -227,7 +227,9 @@ proc readPackageList(name: string, options: Options): JsonNode =
|
|||
for name, list in options.config.packageLists:
|
||||
fetchList(list, options)
|
||||
else:
|
||||
raise newException(NimbleError, "Please run nimble refresh.")
|
||||
# The user might not need a package list for now. So let's try
|
||||
# going further.
|
||||
return newJArray()
|
||||
return parseFile(options.getNimbleDir() / "packages_" &
|
||||
name.toLowerAscii() & ".json")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue