Skip to content

Commit

Permalink
Die with dignity on validation error.
Browse files Browse the repository at this point in the history
  • Loading branch information
rekado committed Oct 12, 2016
1 parent 7a99f65 commit 9bdf022
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rcas/config.scm.in
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@
"Abort if any of the declared files in CONFIG don't exist."
(for-each (lambda (file)
(when (not (file-exists? file))
(error "File does not exist, check your configuration: " file)))
(format (current-error-port)
"File does not exist, check your configuration: ~a\n" file)
(exit 1)))
(append (map (cute assoc-ref config <>)
'(assets-dir upload-dir results-dir))
(map (match-lambda
Expand Down

0 comments on commit 9bdf022

Please sign in to comment.