[libcatmandu-perl] 59/85: Adding some more helpfull error messages

Jonas Smedegaard dr at jones.dk
Tue May 20 09:56:19 UTC 2014


This is an automated email from the git hooks/post-receive script.

js pushed a commit to tag 0.91
in repository libcatmandu-perl.

commit df571f3b62bc8527d4b03ca9febca9dd8012e63a
Author: Patrick Hochstenbach <patrick.hochstenbach at ugent.be>
Date:   Fri May 16 22:20:03 2014 +0200

    Adding some more helpfull error messages
---
 lib/Catmandu/CLI.pm | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lib/Catmandu/CLI.pm b/lib/Catmandu/CLI.pm
index 237dace..6bcbec3 100644
--- a/lib/Catmandu/CLI.pm
+++ b/lib/Catmandu/CLI.pm
@@ -55,6 +55,9 @@ sub run {
         elsif ($@ =~ /Can't locate Catmandu\/(Importer|Exporter|Store)\/([^\.]+)/) {
             print STDERR "Can't find:\n\n\tCatmandu::$1\::$2\n\nin your installation. Or a\n\n\t$2\n\nin your catmandu.yml\n";
         }
+        elsif ($@ =~ /unknown store default/) {
+            print STDERR "You need to provide the type of a Store or define one in your catmandu.yml file.\n";
+        }
         else {
             die $@;
         }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libcatmandu-perl.git



More information about the Pkg-perl-cvs-commits mailing list