(defun test () (error "~A"))
(defun test2 () (handler-case (test) (error (er) (princ-to-string er))))
(test2) -> throws error
However, if princ-to-string is replaced by something else, no error is thrown. I found this in two implementations (ecl and sbcl), so is there a problem with my code?
(defun test2 () (handler-case (test) (error (er) (princ-to-string er))))
(test2) -> throws error
However, if princ-to-string is replaced by something else, no error is thrown. I found this in two implementations (ecl and sbcl), so is there a problem with my code?