Skip to content

Commit

Permalink
Better handle system-not-found in system-depends-on-p
Browse files Browse the repository at this point in the history
  • Loading branch information
digikar99 committed Mar 28, 2024
1 parent 0a0e6c9 commit f1bacf7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/asdf-system-connections.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@ or list acceptable to the reader macros #+ and #-."

(defun system-depends-on-p (system depends-on)
"Returns non-NIL if DEPENDS-ON is a dependency of SYSTEM."
(let* ((system (find-system-from-dep-spec system))
(let* ((system (handler-case (find-system-from-dep-spec system)
(system-not-found ()
(return-from system-depends-on-p nil))))
(depends-on (find-system-from-dep-spec depends-on))
(depends-on-name (when depends-on
(component-name depends-on))))
Expand Down

0 comments on commit f1bacf7

Please sign in to comment.