diff options
author | Araq <rumpf_a@web.de> | 2014-10-13 08:26:24 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2014-10-13 08:26:24 +0200 |
commit | c7570dcd3e4202bd339a2ebbc09952a546c62269 (patch) | |
tree | 1e3b7a73a597bc825b03bce6ebac4db9a3d7d237 /lib/impure | |
parent | 5272213da4b0701890d8a42fb292962704f0b99d (diff) | |
parent | b7befd69ba0051c1db44a37c8c3e06c48990a9b1 (diff) | |
download | Nim-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.nim | 2 |
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) |