Improve asyncdispatch error messages, fix some tests on Windows.

This commit is contained in:
Dominik Picheta 2015-09-11 14:35:42 +01:00
commit 77c2bcf079
4 changed files with 36 additions and 20 deletions

View file

@ -15,7 +15,8 @@ const
when defined(windows) or defined(nimdoc):
discard
# TODO: just make it work on Windows for now.
quit("Error: unhandled exception: Connection refused [Exception]")
else:
proc testAsyncConnect() {.async.} =
var s = newAsyncRawSocket()

View file

@ -17,7 +17,8 @@ const
when defined(windows) or defined(nimdoc):
discard
# TODO: just make it work on Windows for now.
quit("Error: unhandled exception: Connection reset by peer [Exception]")
else:
proc createListenSocket(host: string, port: Port): TAsyncFD =
result = newAsyncRawSocket()

View file

@ -1,7 +1,7 @@
discard """
file: "tasyncexceptions.nim"
exitcode: 1
outputsub: "Error: unhandled exception: foobar [Exception]"
outputsub: "Error: unhandled exception: foobar"
"""
import asyncdispatch