If logical pathname wasn't defined yet, signal type error. Fixes #102.
Signed-off-by: Daniel Kochmański <daniel@turtleware.eu>
- Format float bug, when width and fdigits aren't set, but k is
+ - `logical-pathname-translations' throws an error if logical pathname
+ wasn't defined yet. Until now it non-conformingly returned nil
+
- Other minor tweaks
* 15.3.7 changes since 15.2.21
(in-package "SYSTEM")
-(defun logical-pathname-translations (p) (si:pathname-translations p))
+(defun logical-pathname-translations (p)
+ (or (si:pathname-translations p)
+ (error 'simple-type-error
+ :datum p
+ :expected-type 'logical-pathname
+ :format-control "logical host not yet defined: ~S"
+ :format-arguments (list p))))
+
(defsetf logical-pathname-translations si:pathname-translations)
(defun load-logical-pathname-translations (host)