From 081c6aa273c84d67f05f833c72fb35af087b168d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6nke=20Ludwig?= Date: Wed, 17 Jan 2024 10:00:33 +0100 Subject: [PATCH] Explicitly mention the conflicting package name when adding a package. --- source/dubregistry/dbcontroller.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/dubregistry/dbcontroller.d b/source/dubregistry/dbcontroller.d index 122ac6a9..3b3daf98 100644 --- a/source/dubregistry/dbcontroller.d +++ b/source/dubregistry/dbcontroller.d @@ -73,7 +73,7 @@ class DbController { void addPackage(ref DbPackage pack) { - enforce(m_packages.findOne(["name": pack.name], ["_id": true]).isNull(), "A package with the same name is already registered."); + enforce(m_packages.findOne(["name": pack.name], ["_id": true]).isNull(), "A package with the name \""~pack.name~"\" is already registered."); if (pack._id == BsonObjectID.init) pack._id = BsonObjectID.generate(); m_packages.insertOne(pack);