From: Don Armstrong Date: Sun, 7 Mar 2021 16:26:55 +0000 (-0800) Subject: only complain about there not being a db when there should be one X-Git-Url: https://git.donarmstrong.com/?p=debbugs.git;a=commitdiff_plain;h=7b65bd89f8007ee13e2aef740e09fc23327b8efb only complain about there not being a db when there should be one --- diff --git a/lib/Debbugs/Bug.pm b/lib/Debbugs/Bug.pm index fefb493..b3e95cd 100644 --- a/lib/Debbugs/Bug.pm +++ b/lib/Debbugs/Bug.pm @@ -119,7 +119,9 @@ sub _build_package_collection { if ($self->has_schema) { return Debbugs::Collection::Package->new(schema => $self->schema); } - carp "No schema when building package collection"; + if (defined $config{database}) { + carp "No schema when building package collection"; + } return Debbugs::Collection::Package->new(); }