Skip to content

Commit

Permalink
Fixes #171
Browse files Browse the repository at this point in the history
  • Loading branch information
dom96 committed Dec 28, 2015
1 parent 01bca20 commit 8d4c644
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/nimblepkg/nimscriptsupport.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 8d4c644

Please sign in to comment.