fix error message again after consulting with SK
This commit is contained in:
parent
135cce5b97
commit
f3a75d1ab0
|
@ -257,7 +257,12 @@
|
|||
(define (check-input-file f t)
|
||||
(define d? (assq f *input-devices*))
|
||||
(check-arg t (or (string? f) d?) (error-message (map car *input-devices*)) "first" f)
|
||||
(check-arg t (or d? (file-exists? f)) "name of existing file in program's folder" "first" f))
|
||||
;; ---------------------------------------------------------------------------------------------------
|
||||
(unless (or d? (file-exists? f))
|
||||
(error t "file ~s not found in ~s [the program's folder]"
|
||||
f
|
||||
(path->string (current-directory))))
|
||||
f)
|
||||
|
||||
;; effect: ensure that f is a file in current directory or report error for t
|
||||
(define (check-output-file f t)
|
||||
|
|
Loading…
Reference in New Issue
Block a user