Add and export plugin-conf-error condition
This commit is contained in:
parent
ed60a94be8
commit
72f0000a82
3 changed files with 11 additions and 0 deletions
|
@ -17,6 +17,7 @@
|
||||||
:serial t
|
:serial t
|
||||||
:components ((:file "packages")
|
:components ((:file "packages")
|
||||||
(:file "util")
|
(:file "util")
|
||||||
|
(:file "conditions")
|
||||||
(:file "config")
|
(:file "config")
|
||||||
(:file "themes")
|
(:file "themes")
|
||||||
(:file "documents")
|
(:file "documents")
|
||||||
|
|
9
src/conditions.lisp
Normal file
9
src/conditions.lisp
Normal 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."))
|
||||||
|
|
|
@ -17,6 +17,7 @@
|
||||||
#:add-injection
|
#:add-injection
|
||||||
#:theme-fn
|
#:theme-fn
|
||||||
#:get-updated-files
|
#:get-updated-files
|
||||||
|
#:plugin-conf-error
|
||||||
;; The Document Protocol
|
;; The Document Protocol
|
||||||
#:add-document
|
#:add-document
|
||||||
#:find-all
|
#:find-all
|
||||||
|
|
Loading…
Add table
Reference in a new issue