X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcode%2Ferror.lisp;h=b80994e56d87a48c1ac5db9b1011f9130259524b;hb=62d333e05a6ae7de4e7b5c918d67608a457b3da7;hp=163c0e37bd7697f67adccb7ee7b625ac68c0a431;hpb=d814ff09969434c1d5225786da1c01d7a959cba0;p=sbcl.git diff --git a/src/code/error.lisp b/src/code/error.lisp index 163c0e3..b80994e 100644 --- a/src/code/error.lisp +++ b/src/code/error.lisp @@ -13,8 +13,6 @@ (in-package "SB!KERNEL") -(define-condition simple-style-warning (simple-condition style-warning) ()) - ;;; not sure this is the right place, but where else? (defun style-warn (format-control &rest format-arguments) (/show0 "entering STYLE-WARN") @@ -72,6 +70,16 @@ (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) ())