src/final.lisp (test-module): Don't try output if parsing failed.
[sod] / src / final.lisp
index 96d82df..b98acd1 100644 (file)
@@ -49,7 +49,7 @@
    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