notate a filesystem error correctly

pull/148/head
Matthew Butterick 8 years ago
parent 4c04c8b933
commit 80517b1bb4

@ -90,7 +90,10 @@
pagenode-or-path))]) pagenode-or-path))])
(unless path (unless path
;; use `pagenode-or-path` in error message because at this point `path` is #f ;; use `pagenode-or-path` in error message because at this point `path` is #f
(error (format "~a: no source found for '~a' in directory ~a" caller pagenode-or-path (current-directory)))) (raise
(make-exn:fail:filesystem
(format "~a: no source found for '~a' in directory ~a" caller pagenode-or-path (current-directory))
(current-continuation-marks))))
path)) path))

@ -1 +1 @@
1493654878 1494629838

Loading…
Cancel
Save