[libconfig-model-dpkg-perl] 02/07: fix error message when patch file is missing

dod at debian.org dod at debian.org
Thu Jul 27 19:02:39 UTC 2017


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

dod pushed a commit to branch master
in repository libconfig-model-dpkg-perl.

commit a072244cbe37907eeba7c61293f8f4b3eceab45a
Author: Dominique Dumont <dod at debian.org>
Date:   Tue Jul 18 20:44:05 2017 +0200

    fix error message when patch file is missing
---
 lib/Config/Model/Backend/Dpkg/Patch.pm | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/lib/Config/Model/Backend/Dpkg/Patch.pm b/lib/Config/Model/Backend/Dpkg/Patch.pm
index 8adaa55..789658e 100644
--- a/lib/Config/Model/Backend/Dpkg/Patch.pm
+++ b/lib/Config/Model/Backend/Dpkg/Patch.pm
@@ -52,8 +52,7 @@ sub read {
 
     $logger->info("Parsing patch $patch_file");
     my $patch_io = IO::File->new($patch_file)
-      || Config::Model::Exception::Syntax->throw(
-        message => "cannot read patch $patch_file" );
+      || Config::Model::Exception::User->throw(message => "cannot read patch $patch_file: $!" );
     $patch_io->binmode(':utf8');
 
     my ( $header, $diff ) = ( [],[] );

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



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