Skip to content
Snippets Groups Projects
Commit f85376ae authored by rtoy's avatar rtoy
Browse files

Signal a print-not-readable condition when a pathname can't be printed

readably, instead of a generic error condition.
parent c1a1bacd
No related branches found
No related tags found
No related merge requests found
......@@ -4,7 +4,7 @@
;;; Carnegie Mellon University, and has been placed in the public domain.
;;;
(ext:file-comment
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/pathname.lisp,v 1.68 2004/09/07 15:13:51 rtoy Exp $")
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/pathname.lisp,v 1.69 2004/09/09 17:13:43 rtoy Exp $")
;;;
;;; **********************************************************************
;;;
......@@ -120,7 +120,7 @@
(format stream "#P~S" namestring)
(format stream "~A" namestring)))
(*print-readably*
(error "~S Cannot be printed readably." pathname))
(error 'print-not-readable :object pathname))
(t
(funcall (formatter "#<Unprintable pathname, Host=~S, Device=~S, ~
Directory=~S, Name=~S, Type=~S, Version=~S>")
......@@ -185,7 +185,7 @@
(format stream "#P~S" namestring)
(format stream "~A" namestring)))
(*print-readably*
(error "~S Cannot be printed readably." pathname))
(error 'print-not-readable :object pathname))
(t
(funcall (formatter "#<Unprintable pathname, Host=~S, ~
Directory=~S, File=~S, Name=~S, Version=~S>")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment