logical-pathname-translations: signal error if pathname not defined

If logical pathname wasn't defined yet, signal type error. Fixes #102.

Signed-off-by: Daniel Kochmański <daniel@turtleware.eu>
This commit is contained in:
Daniel Kochmański 2015-08-05 14:03:25 +02:00
parent 1a3aecc2d6
commit 63e7187866
2 changed files with 11 additions and 1 deletions

View file

@ -87,6 +87,9 @@
- 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

View file

@ -13,7 +13,14 @@
(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)