diff options
author | Jonathan Hall <flimzy@flimzy.com> | 2015-10-25 20:01:00 +0100 |
---|---|---|
committer | Niels Thykier <niels@thykier.net> | 2015-11-06 22:23:57 +0100 |
commit | 518eaa3c4e8d6150c986570aaacc0cb2b4df5c6a (patch) | |
tree | b3bd5cf30036477cffa85a5330bec80c7a04b2f4 /Debian | |
parent | e4f4c774143b5b89dbaae49eab05f2f52e661903 (diff) | |
download | debhelper-518eaa3c4e8d6150c986570aaacc0cb2b4df5c6a.tar.gz |
Don't swallow $@ when configure() fails, for accurate error reporting.
Signed-off-by: Niels Thykier <niels@thykier.net>
Diffstat (limited to 'Debian')
-rw-r--r-- | Debian/Debhelper/Buildsystem/cmake.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Debian/Debhelper/Buildsystem/cmake.pm b/Debian/Debhelper/Buildsystem/cmake.pm index 6bd591b8..f4d5c3c8 100644 --- a/Debian/Debhelper/Buildsystem/cmake.pm +++ b/Debian/Debhelper/Buildsystem/cmake.pm @@ -86,11 +86,11 @@ sub configure { eval { $this->doit_in_builddir("cmake", $this->get_source_rel2builddir(), @flags, @_); }; - if ($@) { + if (my $err = $@) { if (-e $this->get_buildpath("CMakeCache.txt")) { $this->doit_in_builddir("tail -v -n +0 CMakeCache.txt"); } - die $@; + die $err; } } |