From 900ae9e233ccb7b9bf62be6f954c0e3d555db39a Mon Sep 17 00:00:00 2001 From: toy <toy> Date: Mon, 25 Nov 2002 18:59:50 +0000 Subject: [PATCH] From Gerd Moellman who ported the SBCL version to CMUCL. Fix the TYPE-ERROR/PACKAGE-ERROR confusion in LOOP, by fixing WITH-PACKAGE-ITERATOR. --- code/package.lisp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/code/package.lisp b/code/package.lisp index 271d2d4a4..ff28a234a 100644 --- a/code/package.lisp +++ b/code/package.lisp @@ -5,7 +5,7 @@ ;;; Carnegie Mellon University, and has been placed in the public domain. ;;; (ext:file-comment - "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/package.lisp,v 1.60 2002/11/14 16:54:33 toy Exp $") + "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/package.lisp,v 1.61 2002/11/25 18:59:50 toy Exp $") ;;; ;;; ********************************************************************** ;;; @@ -661,7 +661,11 @@ (,packages `,(mapcar #'(lambda (package) (if (packagep package) package - (find-package package))) + (or (find-package package) + (error 'simple-package-error + :name (string package) + :format-control "~@<~S does not name a package ~:>" + :format-arguments (list package))))) (if (consp ,these-packages) ,these-packages (list ,these-packages)))) -- GitLab