You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by se...@apache.org on 2019/07/19 20:57:13 UTC
[whimsy] branch master updated: Show what error occurred
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 <se...@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