mirror of
https://codeberg.org/cage/tinmop/
synced 2025-02-01 04:26:47 +01:00
- made nicer the error message when a directive is missing from configuration file.
This commit is contained in:
parent
fb76953a64
commit
8b99548e6e
@ -542,12 +542,15 @@
|
|||||||
|
|
||||||
;;;; interface
|
;;;; interface
|
||||||
|
|
||||||
|
(defun access-key->user-directive (key)
|
||||||
|
(join-with-strings (mapcar #'string-downcase key) "."))
|
||||||
|
|
||||||
(defun access-non-null-conf-value (object &rest keys)
|
(defun access-non-null-conf-value (object &rest keys)
|
||||||
(let ((value (apply #'access:accesses object keys)))
|
(let ((value (apply #'access:accesses object keys)))
|
||||||
(if (null value)
|
(if (null value)
|
||||||
(error (_ (format nil
|
(error (_ (format nil
|
||||||
(_ "The configuration (*.conf) file is missing the value for ~a")
|
(_ "The configuration (*.conf) file is missing the value for ~s")
|
||||||
keys)))
|
(access-key->user-directive keys))))
|
||||||
value)))
|
value)))
|
||||||
|
|
||||||
(defun gemini-default-favicon ()
|
(defun gemini-default-favicon ()
|
||||||
@ -1171,6 +1174,7 @@
|
|||||||
|
|
||||||
(defun trivial-configuration-missing-value-check ()
|
(defun trivial-configuration-missing-value-check ()
|
||||||
(loop for fn in (list
|
(loop for fn in (list
|
||||||
|
#'gemini-default-favicon
|
||||||
#'gemini-link-prefix-to-gemini
|
#'gemini-link-prefix-to-gemini
|
||||||
#'gemini-link-prefix-to-other
|
#'gemini-link-prefix-to-other
|
||||||
#'gemini-quote-prefix
|
#'gemini-quote-prefix
|
||||||
|
Loading…
x
Reference in New Issue
Block a user