0.8.12.32: Fix the performance degradation in DEFCLASS caused
[sbcl.git] / src / code / error.lisp
index f871e90..b80994e 100644 (file)
              (case-failure-name condition)
              (case-failure-possibilities condition)))))
 
+(define-condition compiled-program-error (program-error)
+  ((message :initarg :message :reader program-error-message)
+   (source :initarg :source :reader program-error-source))
+  (:report (lambda (condition stream)
+            (format stream "Execution of a form compiled with errors.~%~
+                            Form:~%  ~A~%~
+                            Compile-time-error:~%  ~A"
+                      (program-error-source condition)
+                      (program-error-message condition)))))
+
 (define-condition simple-control-error (simple-condition control-error) ())
 (define-condition simple-file-error    (simple-condition file-error)    ())
 (define-condition simple-program-error (simple-condition program-error) ())