More deprecation warning fixes (asyncdispatch, uri).

This commit is contained in:
Dominik Picheta 2014-12-26 16:56:19 +00:00
commit c0207dbae2
2 changed files with 16 additions and 16 deletions

View file

@ -113,7 +113,7 @@ proc parseUri*(uri: string): Uri =
var authority = ""
i.inc parseUntil(uri, authority, {'/', '?', '#'}, i)
if authority == "":
raise newException(EInvalidValue, "Expected authority got nothing.")
raise newException(ValueError, "Expected authority got nothing.")
parseAuthority(authority, result)
# Path