From: Mark Wooding Date: Sat, 25 Mar 2017 18:10:46 +0000 (+0000) Subject: src/final.lisp (test-module): Don't try output if parsing failed. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/sod/commitdiff_plain/118f5c0006f241bc7c03a7741f73b87b92b4e938 src/final.lisp (test-module): Don't try output if parsing failed. --- diff --git a/src/final.lisp b/src/final.lisp index 96d82df..b98acd1 100644 --- a/src/final.lisp +++ b/src/final.lisp @@ -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