ソースを参照

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

Javier Olaechea 10 年 前
コミット
1ff10b9b63
共有1 個のファイルを変更した1 個の追加1 個の削除を含む
  1. 1 1
      src/content.lisp

+ 1 - 1
src/content.lisp

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