(and (consp directory) (member (first directory) '(:absolute :relative))))
directory)
(t
- (error (compatfmt "~@<Unrecognized pathname directory component ~S~@:>") directory))))
+ (error "Unrecognized pathname directory component ~S" directory))))
(defun* merge-pathname-directory-components (specified defaults)
;; Helper for merge-pathnames* that handles directory components.
pathnames."
(check-type s string)
(when (find #\: s)
- (error (compatfmt "~@<A portable ASDF pathname designator cannot include a #\: character: ~3i~_~S~@:>") s))
+ (error "A portable ASDF pathname designator cannot include a #\: character: ~S" s))
(let* ((components (split-string s :separator "/"))
(last-comp (car (last components))))
(multiple-value-bind (relative components)
(if (equal (first-char s) #\/)
(progn
(when force-relative
- (error (compatfmt "~@<Absolute pathname designator not allowed: ~3i~_~S~@:>") s))
+ (error "Absolute pathname designator not allowed: ~S" s))
(values :absolute (cdr components)))
(values :relative nil))
(values :relative components))
((stringp pathspec)
(ensure-directory-pathname (pathname pathspec)))
((not (pathnamep pathspec))
- (error (compatfmt "~@<Invalid pathname designator ~S~@:>") pathspec))
+ (error "Invalid pathname designator ~S" pathspec))
((wild-pathname-p pathspec)
- (error (compatfmt "~@<Can't reliably convert wild pathname ~3i~_~S~@:>") pathspec))
+ (error "Can't reliably convert wild pathname ~S" pathspec))
((directory-pathname-p pathspec)
pathspec)
(t