chiark / gitweb /
src/final.lisp (test-module): Don't try output if parsing failed.
[sod] / 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