chiark / gitweb /
src/final.lisp (test-module): Don't try output if parsing failed.
authorMark Wooding <mdw@distorted.org.uk>
Sat, 25 Mar 2017 18:10:46 +0000 (18:10 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Fri, 8 Jun 2018 18:58:28 +0000 (19:58 +0100)
src/final.lisp

index 96d82df8575b385ab987254dee675e21e60184bf..b98acd1c542a555a51b8aee9a3506a8f91cecb5b 100644 (file)
@@ -49,7 +49,7 @@ (defun test-module (path &key reason)
    warnings encountered while processing the module."
   (multiple-value-bind (module nerror nwarning)
       (count-and-report-errors () (read-module path))
-    (when reason
+    (when (and module reason)
       (with-open-file (out *debugout-pathname*
                       :direction :output
                       :if-exists :supersede