Fixes #171
This commit is contained in:
parent
01bca203a8
commit
8d4c6446d1
1 changed files with 4 additions and 0 deletions
|
|
@ -264,6 +264,10 @@ proc readPackageInfoFromNims*(scriptName: string, options: Options,
|
|||
# Execute the nimscript file.
|
||||
execScript(scriptName, nil, options)
|
||||
|
||||
# Check whether an error has occurred.
|
||||
if msgs.gErrorCounter > 0:
|
||||
raise newException(NimbleError, previousMsg)
|
||||
|
||||
# Extract all the necessary fields populated by the nimscript file.
|
||||
proc getSym(thisModule: PSym, ident: string): PSym =
|
||||
thisModule.tab.strTableGet(getIdent(ident))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue