From 10dfda16361f1feaaee64596abd3b3dcea25ebfa Mon Sep 17 00:00:00 2001 From: colin Date: Thu, 6 Apr 2023 07:29:47 -0700 Subject: Changed warnings --- lazybones.lisp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lazybones.lisp b/lazybones.lisp index 970d212..9eb719a 100644 --- a/lazybones.lisp +++ b/lazybones.lisp @@ -298,11 +298,8 @@ Returns NIL on failure" (when (search "//" template) (warn "The proposed route ~s contains a double forward-slash (//), is this intended?" template)) - (when (a:ends-with #\/ template) - (warn "The proposed route ~s ends with a forward-slash (/), is this intended?" - template)) (unless (eql #\/ (elt template 0)) - (warn "The proposed route ~s does not begin with a forward-slash, is this intended?" + (error "The proposed route ~s does not begin with a forward-slash, is this intended?" template)) (loop for field in (str:split #\/ template) for var? = (parse-route-variable-string field) -- cgit v1.2.3