From 72f0000a82a35489d4fab04fa1023a17ea638301 Mon Sep 17 00:00:00 2001 From: PuercoPop Date: Wed, 7 May 2014 21:00:33 -0500 Subject: [PATCH] Add and export plugin-conf-error condition --- coleslaw.asd | 1 + src/conditions.lisp | 9 +++++++++ src/packages.lisp | 1 + 3 files changed, 11 insertions(+) create mode 100644 src/conditions.lisp diff --git a/coleslaw.asd b/coleslaw.asd index 40ab023..50e6792 100644 --- a/coleslaw.asd +++ b/coleslaw.asd @@ -17,6 +17,7 @@ :serial t :components ((:file "packages") (:file "util") + (:file "conditions") (:file "config") (:file "themes") (:file "documents") diff --git a/src/conditions.lisp b/src/conditions.lisp new file mode 100644 index 0000000..2071f01 --- /dev/null +++ b/src/conditions.lisp @@ -0,0 +1,9 @@ +(in-package :coleslaw) + +(define-condition plugin-conf-error () + ((plugin :initform "Plugin":initarg :plugin :reader plugin) + (message :initform "" :initarg :message :reader message)) + (:report (lambda (condition stream) + (format stream "~A: ~A" (plugin condition) (message condition)))) + (:documentation "Condition to signal when the plugin is misconfigured.")) + diff --git a/src/packages.lisp b/src/packages.lisp index 9084c48..6a0e507 100644 --- a/src/packages.lisp +++ b/src/packages.lisp @@ -17,6 +17,7 @@ #:add-injection #:theme-fn #:get-updated-files + #:plugin-conf-error ;; The Document Protocol #:add-document #:find-all