Skip to content

Commit 1d5ae71

Browse files
committed
Make CRANK warn on an unknown source instead of erroring out.
1 parent 9f7a473 commit 1d5ae71

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

misc.lisp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,11 +163,14 @@
163163

164164
(defun crank (&optional (source *last-source*))
165165
(check-critical-programs)
166+
(unless (source-designator source)
167+
(warn "Not a known source -- ~S" source)
168+
(return-from crank nil))
166169
(setf *last-source* source)
167170
(update-system-file-index)
168171
(let ((wins (find-more-winning-systems source)))
169172
(list :fails (missing-components source)
170-
:wins wins)))
173+
:wins wins)))
171174

172175
(defun source-pathname (project-name)
173176
(let ((directory `(:relative "quicklisp-controller"

0 commit comments

Comments
 (0)