conent.lisp (parse-medatada): add filename to the error message

This commit is contained in:
Javier Olaechea 2014-11-11 22:59:17 -05:00
parent 8273efe00e
commit 1ff10b9b63

View file

@ -60,7 +60,7 @@
(flet ((get-next-line (input)
(string-trim '(#\Space #\Newline #\Tab) (read-line input nil))))
(unless (string= (get-next-line stream) (separator *config*))
(error "The file lacks the expected header: ~a" (separator *config*)))
(error "The file, ~a, lacks the expected header: ~a" (file-namestring stream) (separator *config*)))
(loop for line = (get-next-line stream)
until (string= line (separator *config*))
appending (parse-initarg line))))