Fixes infinite loop. Ref @zielmicha/reactor.nim#1.

This commit is contained in:
Dominik Picheta 2016-01-10 00:36:02 +00:00
commit ac1714ffef

View file

@ -25,7 +25,7 @@ proc raiseNewValidationError(msg: string, warnInstalled: bool) =
# TODO: We warn everywhere for now. Raise the error in the next version. # TODO: We warn everywhere for now. Raise the error in the next version.
echo("WARNING: ", msg, ". Will be an error in next version!") echo("WARNING: ", msg, ". Will be an error in next version!")
else: else:
raiseNewValidationError(msg, warnInstalled) raise newValidationError(msg, warnInstalled)
proc validatePackageName*(name: string) = proc validatePackageName*(name: string) =
## Raises an error if specified package name contains invalid characters. ## Raises an error if specified package name contains invalid characters.