Project

General

Profile

Defect #1682 ยป redmine_patch.txt

Adam Grant, 2008-08-02 00:48

 
1
Index: abstract_adapter.rb
2
===================================================================
3
--- abstract_adapter.rb	(revision 1694)
4
+++ abstract_adapter.rb	(working copy)
5
@@ -176,6 +176,9 @@
6
               io.close_write
7
               block.call(io) if block_given?
8
             end
9
+            if $? && $?.exitstatus != 0
10
+              raise Errno::ENOENT, "Exit status is #{$?.exitstatus}" 
11
+            end
12
           rescue Errno::ENOENT => e
13
             msg = strip_credential(e.message)
14
             # The command failed, log it and re-raise
    (1-1/1)