summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Attachment
diff options
context:
space:
mode:
authorByron Jones <bjones@mozilla.com>2013-02-07 08:02:20 +0100
committerByron Jones <bjones@mozilla.com>2013-02-07 08:02:20 +0100
commit4d295ae996aa2b46dee2b66a3ba1270345cacd3d (patch)
tree018dbf108b2d721fff1961d568b925176da479f8 /Bugzilla/Attachment
parenta8a6d1bf445b419f853fbdd8f89899e01f99230a (diff)
downloadbugzilla-4d295ae996aa2b46dee2b66a3ba1270345cacd3d.tar.gz
bugzilla-4d295ae996aa2b46dee2b66a3ba1270345cacd3d.tar.xz
Bug 784352: show a warning when interdiff reports errors
Diffstat (limited to 'Bugzilla/Attachment')
-rw-r--r--Bugzilla/Attachment/PatchReader.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/Bugzilla/Attachment/PatchReader.pm b/Bugzilla/Attachment/PatchReader.pm
index 800de0722..b766a9071 100644
--- a/Bugzilla/Attachment/PatchReader.pm
+++ b/Bugzilla/Attachment/PatchReader.pm
@@ -122,7 +122,8 @@ sub process_interdiff {
# Check for errors
{
local $/ = undef;
- if (defined(my $error = <$interdiff_stderr>)) {
+ my $error = <$interdiff_stderr>;
+ if ($error) {
warn($error);
$warning = 'interdiff3';
}