<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,3 +1,8 @@
+*unreleased*
+
+* Changed capture() helper to not raise an exception on error, but to warn instead [Jeff Forcier]
+
+
 *2.4.0* June 13, 2008
 
 * Added :normalize_asset_timestamps option to deployment, defaulting to true, which allows asset timestamping to be disabled [John Trupiano]</diff>
      <filename>CHANGELOG</filename>
    </modified>
    <modified>
      <diff>@@ -34,7 +34,7 @@ module Capistrano
           invoke_command(command, options.merge(:once =&gt; true)) do |ch, stream, data|
             case stream
             when :out then output &lt;&lt; data
-            when :err then raise CaptureError, &quot;error processing #{command.inspect}: #{data.inspect}&quot;
+            when :err then warn &quot;[err :: #{ch[:server]}] #{data}&quot;
             end
           end
           output</diff>
      <filename>lib/capistrano/configuration/actions/inspect.rb</filename>
    </modified>
    <modified>
      <diff>@@ -37,9 +37,12 @@ class ConfigurationActionsInspectTest &lt; Test::Unit::TestCase
     @config.capture(&quot;hostname&quot;, :foo =&gt; &quot;bar&quot;)
   end
 
-  def test_capture_with_stderr_result_should_raise_capture_error
-    @config.expects(:invoke_command).yields(mock(&quot;channel&quot;), :err, &quot;boom&quot;)
-    assert_raises(Capistrano::CaptureError) { @config.capture(&quot;hostname&quot;) }
+  def test_capture_with_stderr_should_emit_stderr_via_warn
+    ch = mock(&quot;channel&quot;)
+    ch.expects(:[]).with(:server).returns(server(&quot;capistrano&quot;))
+    @config.expects(:invoke_command).yields(ch, :err, &quot;boom&quot;)
+    @config.expects(:warn).with(&quot;[err :: capistrano] boom&quot;)
+    @config.capture(&quot;hostname&quot;)
   end
 
   def test_capture_with_stdout_should_aggregate_and_return_stdout
@@ -59,4 +62,4 @@ class ConfigurationActionsInspectTest &lt; Test::Unit::TestCase
       @config.channel = channel
       @config.script = output
     end
-end
\ No newline at end of file
+end</diff>
      <filename>test/configuration/actions/inspect_test.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>074d75a00621b276e2bf0a8276c77da0b3cc976f</id>
    </parent>
  </parents>
  <author>
    <name>Jeff Forcier</name>
    <email>jeff@bitprophet.org</email>
  </author>
  <url>http://github.com/jamis/capistrano/commit/a6223b3939f0ef91c928f94502c806a68a011e74</url>
  <id>a6223b3939f0ef91c928f94502c806a68a011e74</id>
  <committed-date>2008-06-23T06:44:29-07:00</committed-date>
  <authored-date>2008-06-14T21:52:57-07:00</authored-date>
  <message>Update capture() to warn about stderr instead of raising CaptureError.</message>
  <tree>23effbf0143075d09f9874979a8e29254ff22324</tree>
  <committer>
    <name>Jamis Buck</name>
    <email>jamis@37signals.com</email>
  </committer>
</commit>
