summary refs log tree commit diff stats
path: root/lib/impure
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2014-10-13 08:26:24 +0200
committerAraq <rumpf_a@web.de>2014-10-13 08:26:24 +0200
commitc7570dcd3e4202bd339a2ebbc09952a546c62269 (patch)
tree1e3b7a73a597bc825b03bce6ebac4db9a3d7d237 /lib/impure
parent5272213da4b0701890d8a42fb292962704f0b99d (diff)
parentb7befd69ba0051c1db44a37c8c3e06c48990a9b1 (diff)
downloadNim-c7570dcd3e4202bd339a2ebbc09952a546c62269.tar.gz
Merge branch 'devel' into bigbreak
Conflicts:
	compiler/ast.nim
	compiler/nimfix/prettybase.nim
	compiler/pragmas.nim
	compiler/sempass2.nim
	doc/manual.txt
	koch.nim
	lib/pure/concurrency/threadpool.nim
	web/news.txt
Diffstat (limited to 'lib/impure')
-rw-r--r--lib/impure/zipfiles.nim2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/impure/zipfiles.nim b/lib/impure/zipfiles.nim
index fb687e6f1..8e5c24b8b 100644
--- a/lib/impure/zipfiles.nim
+++ b/lib/impure/zipfiles.nim
@@ -56,6 +56,8 @@ proc addFile*(z: var TZipArchive, dest, src: string) =
   ## Adds the file `src` to the archive `z` with the name `dest`. `dest`
   ## may contain a path that will be created. 
   assert(z.mode != fmRead) 
+  if not fileExists(src):
+    raise newException(EIO, "File '" & src & "' does not exist")
   var zipsrc = zip_source_file(z.w, src, 0, -1)
   if zipsrc == nil:
     #echo("Dest: " & dest)