diff --git a/compiler/gorgeimpl.nim b/compiler/gorgeimpl.nim index c9f82b5051..d4aeb6a77e 100644 --- a/compiler/gorgeimpl.nim +++ b/compiler/gorgeimpl.nim @@ -40,6 +40,7 @@ proc opGorge*(cmd, input, cache: string, info: TLineInfo; conf: ConfigRef): (str p.inputStream.write(input) p.inputStream.close() result = p.readOutput + p.close() readSuccessful = true # only cache successful runs: if result[1] == 0: @@ -54,5 +55,6 @@ proc opGorge*(cmd, input, cache: string, info: TLineInfo; conf: ConfigRef): (str p.inputStream.write(input) p.inputStream.close() result = p.readOutput + p.close() except IOError, OSError: result = ("", -1)