<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -52,19 +52,25 @@ run_time = Benchmark.realtime do
       tmp_stdout = stdout.read.strip
       tmp_stderr = stderr.read.strip
       logger.info(&quot;#{rsync_cleanout_cmd}\n#{tmp_stdout}&quot;) unless tmp_stdout.empty?
-      logger.error(&quot;#{rsync_cleanout_cmd}\n#{tmp_stderr}&quot;) unless tmp_stderr.empty?
+      unless tmp_stderr.empty?
+        logger.error(&quot;#{rsync_cleanout_cmd}\n#{tmp_stderr}&quot;)
+        `growlnotify -t RRsync --image icons/fail.png -m 'An error occurred: #{tmp_stderr}'`
+      end
     }
     Open3::popen3(&quot;#{rsync_cmd}&quot;) { |stdin, stdout, stderr|
       tmp_stdout = stdout.read.strip
       tmp_stderr = stderr.read.strip
       logger.info(&quot;#{rsync_cmd}\n#{tmp_stdout}&quot;) unless tmp_stdout.empty?
-      logger.error(&quot;#{rsync_cmd}\n#{tmp_stderr}&quot;) unless tmp_stderr.empty?
+      unless tmp_stderr.empty?
+        logger.error(&quot;#{rsync_cmd}\n#{tmp_stderr}&quot;)
+        `growlnotify -t RRsync --image icons/fail.png -m 'An error occurred: #{tmp_stderr}'`
+      end
     }
     FileUtils.rmdir(&quot;#{EMPTY_DIR}&quot;)
   rescue Errno::EACCES, Errno::ENOENT, Errno::ENOTEMPTY, Exception =&gt; e
     logger.fatal(e.to_s)
-    `growlnotify -t RRsync --image icons/fail.png -m 'An error occurred!'`
+    `growlnotify -t RRsync --image icons/fail.png -m 'An error occurred: #{e.to_s}'`
   end
 end
 logger.info(&quot;Finished running at: #{Time.now} - Execution time: #{run_time.to_s[0, 5]}&quot;)
-`growlnotify -t RRsync --image icons/pass.png -m 'Finished running at: #{Time.now} - Execution time: #{run_time.to_s[0, 5]}'`
\ No newline at end of file
+`growlnotify -t RRsync --image icons/pass.png -m 'Finished running at: #{Time.now} - Execution time: #{run_time.to_s[0, 5]}'`</diff>
      <filename>rrsync.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>1081b3b9a80e81bb21990827531a3ff575e1e8d1</id>
    </parent>
  </parents>
  <author>
    <name>Richard Grundy</name>
    <email>rich@27smiles.com</email>
  </author>
  <url>http://github.com/RichGuk/rrsync/commit/c140cc2b15badeb3c46e7ba66b0268fc04d3669a</url>
  <id>c140cc2b15badeb3c46e7ba66b0268fc04d3669a</id>
  <committed-date>2009-02-21T04:31:45-08:00</committed-date>
  <authored-date>2009-02-21T04:31:45-08:00</authored-date>
  <message>Added growl notifications for the rsync command errors and added the actual error for the rescue notify.</message>
  <tree>33c8aebf070b98347b7d90b3cd95ab88efaf84d4</tree>
  <committer>
    <name>Richard Grundy</name>
    <email>rich@27smiles.com</email>
  </committer>
</commit>
