Error out when asked to load a non-existing file.

This commit is contained in:
Dimitri Fontaine 2013-11-26 11:56:34 +01:00
parent de1afc7416
commit 98a7eb12a5

View File

@ -162,8 +162,11 @@
part root))
(if (probe-file candidate) candidate
(error "File does not exists: '~a'." candidate))))
(:filename (if (fad:pathname-absolute-p part) part
(merge-pathnames part root))))))
(:filename (let ((filename
(if (fad:pathname-absolute-p part) part
(merge-pathnames part root))))
(if (probe-file filename) filename
(error "File does not exists: '~a'." filename)))))))
;;;