Skip to content

Commit

Permalink
format-{control,arguments} in simple-progress-condition in src/condit…
Browse files Browse the repository at this point in the history
…ions.lisp

* src/conditions.lisp (simple-progress-condition): added default
  initargs format-control and format-arguments
* test/conditions.lisp (test maybe-print-explanation.print): do not try
  to construct an instance without format-control and format-arguments
  initargs on on-sbcl
  • Loading branch information
scymtym committed Mar 15, 2014
1 parent dd3e640 commit bdb3e01
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/conditions.lisp
Expand Up @@ -294,6 +294,9 @@
(define-condition simple-progress-condition (progress-condition
simple-condition)
()
#-sbcl (:default-initargs
:format-control nil
:format-arguments '())
(:documentation
"Like `progress-condition' but supports format control and format
arguments to produce a report to go along with the raw progress
Expand Down
2 changes: 1 addition & 1 deletion test/conditions.lisp
Expand Up @@ -85,7 +85,7 @@
(apply #'make-condition 'simple-foo-error initargs)))))

'(;; No format-control.
(()
#+sbcl (()
"Foo-error occurred.")
;; With format-control.
((:format-control "the number was ~S."
Expand Down

0 comments on commit bdb3e01

Please sign in to comment.