From f8bf2b25c878fda6570a14d64f1f042136a52c33 Mon Sep 17 00:00:00 2001 From: Matthew Butterick Date: Tue, 31 Jul 2018 18:28:38 -0700 Subject: [PATCH] nonzero exit code for bad raco command (closes #177) --- pollen/private/command.rkt | 5 +++-- pollen/private/ts.rktd | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/pollen/private/command.rkt b/pollen/private/command.rkt index e9eeccc..0b9eb16 100644 --- a/pollen/private/command.rkt +++ b/pollen/private/command.rkt @@ -123,7 +123,7 @@ version print the version" (current-server-port) (make-publish-di (for ([path (in-list dirlist)] #:when (and (directory-exists? path) (not (omitted-path? path)))) - (render-one-dir (->complete-path path))))))] + (render-one-dir (->complete-path path))))))] [else ;; path mode (displayln (format "rendering ~a" (string-join (map ->string path-args) " "))) (apply render-batch (map very-nice-path path-args))]))) @@ -242,4 +242,5 @@ version print the version" (current-server-port) (make-publish-di (begin (displayln (format "`~a` is an unknown command." command)) (display "These are the available ") ; ... "Pollen commands:" - (handle-help)))) + (handle-help) + (exit 1)))) diff --git a/pollen/private/ts.rktd b/pollen/private/ts.rktd index 8b5b1e8..c77f758 100644 --- a/pollen/private/ts.rktd +++ b/pollen/private/ts.rktd @@ -1 +1 @@ -1531950963 +1533086918