[hunchentoot-devel] format string error in HANDLE-REQUEST
Stas Boukarev
stassats at gmail.com
Tue Jun 8 05:23:48 UTC 2010
"Desmond O. Chang" <dochang at gmail.com> writes:
> Hi all,
>
> In SBCL, HANDLE-REQUEST raises an error like this if
> *LOG-LISP-BACKTRACE-P* is NIL:
>
> error in FORMAT: no more arguments
> ~A~:[~*~;~%~:*~A~]
> ^
> [Condition of type SB-FORMAT:FORMAT-ERROR]
>
> Just remove the first ~* to fix it, or you can apply the attachment.
>
> Thanks,
> Des.
>
> diff --git a/source/hunchentoot/acceptor.lisp b/source/hunchentoot/acceptor.lisp
> index 44b7559..e5da7f1 100644
> --- a/source/hunchentoot/acceptor.lisp
> +++ b/source/hunchentoot/acceptor.lisp
> @@ -439,7 +439,7 @@ handler."
> (lambda (cond)
> (when *log-lisp-errors-p*
> (log-message *lisp-errors-log-level*
> - "~A~:[~*~;~%~:*~A~]"
> + "~A~:[~;~%~:*~A~]"
> cond
> (and *log-lisp-backtraces-p* (get-backtrace))))
> ;; if the headers were already sent, the error
Format string can be simplified to "~A~@[~%~A~]".
--
With Best Regards, Stas.
More information about the Tbnl-devel
mailing list