X-Git-Url: https://git.distorted.org.uk/~mdw/sod/blobdiff_plain/52a79ab8b310a785f2c2f1a11069f3a5ad53810c..64d1ecf751f542782b5ffb9c9469c70d92f423de:/src/module-impl.lisp diff --git a/src/module-impl.lisp b/src/module-impl.lisp index 9e74b27..fe6b545 100644 --- a/src/module-impl.lisp +++ b/src/module-impl.lisp @@ -167,7 +167,8 @@ (line (file-location-line location)) (filename (file-location-filename location))) (cond (line - (format stream "~&#line ~D~@[ ~S~]~%" line filename) + (when (typep stream 'position-aware-stream) + (format stream "~&#line ~D~@[ ~S~]~%" line filename)) (funcall thunk) (when (typep stream 'position-aware-stream) (fresh-line stream)