Skip to content

Commit

Permalink
Explicitly mention the conflicting package name when adding a package.
Browse files Browse the repository at this point in the history
  • Loading branch information
s-ludwig authored and Geod24 committed Jan 17, 2024
1 parent da8b042 commit 081c6aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/dubregistry/dbcontroller.d
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 081c6aa

Please sign in to comment.