whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject [whimsy] branch master updated: Show what error occurred
Date Fri, 19 Jul 2019 20:57:13 GMT
This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git


The following commit(s) were added to refs/heads/master by this push:
     new 1525cb0  Show what error occurred
1525cb0 is described below

commit 1525cb0a14d1d3c764dc021f02b82c8aefe45063
Author: Sebb <sebb@apache.org>
AuthorDate: Fri Jul 19 21:57:04 2019 +0100

    Show what error occurred
---
 lib/whimsy/asf/svn.rb | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/lib/whimsy/asf/svn.rb b/lib/whimsy/asf/svn.rb
index dae9171..473c81b 100644
--- a/lib/whimsy/asf/svn.rb
+++ b/lib/whimsy/asf/svn.rb
@@ -330,8 +330,9 @@ module ASF
         end
 
         # fail if there are pending changes
-        unless rc == 0 and `svn st #{tmpfile || tmpdir}`.empty?
-          raise "svn failure #{rc} #{path.inspect}"
+        status = `svn st #{tmpfile || tmpdir}`
+        unless rc == 0 && status.empty?
+          raise "svn failure #{rc} #{path.inspect} #{status}"
         end
       ensure
         FileUtils.rm_rf tmpdir


Mime
View raw message