summary refs log tree commit diff stats
path: root/compiler/service.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2014-04-20 01:19:10 +0200
committerAraq <rumpf_a@web.de>2014-04-20 01:19:10 +0200
commit05e89ffceb4a0cb85b59eb1ca34d27b0d5cb63dd (patch)
tree2f0604f731a07ce17b3f6af06b268d67095d4259 /compiler/service.nim
parent9a2704056a03fb39c2b4a212cf9b15ae6b411544 (diff)
parent1f9f34b9a747b313a85c1e9a15e3a0fdb5f2255a (diff)
downloadNim-05e89ffceb4a0cb85b59eb1ca34d27b0d5cb63dd.tar.gz
Merge branch 'devel' of https://github.com/Araq/Nimrod into devel
Diffstat (limited to 'compiler/service.nim')
-rw-r--r--compiler/service.nim1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/service.nim b/compiler/service.nim
index 42c4aa9f4..2b861e1c7 100644
--- a/compiler/service.nim
+++ b/compiler/service.nim
@@ -84,6 +84,7 @@ proc serve*(action: proc (){.nimcall.}) =
   of "tcp", "":
     when useCaas:
       var server = socket()
+      if server == invalidSocket: osError(osLastError())
       let p = getConfigVar("server.port")
       let port = if p.len > 0: parseInt(p).TPort else: 6000.TPort
       server.bindAddr(port, getConfigVar("server.address"))