Add and export plugin-conf-error condition

This commit is contained in:
PuercoPop 2014-05-07 21:00:33 -05:00
parent ed60a94be8
commit 72f0000a82
3 changed files with 11 additions and 0 deletions

View file

@ -17,6 +17,7 @@
:serial t
:components ((:file "packages")
(:file "util")
(:file "conditions")
(:file "config")
(:file "themes")
(:file "documents")

9
src/conditions.lisp Normal file
View file

@ -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."))

View file

@ -17,6 +17,7 @@
#:add-injection
#:theme-fn
#:get-updated-files
#:plugin-conf-error
;; The Document Protocol
#:add-document
#:find-all