You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by cu...@apache.org on 2018/05/31 12:36:59 UTC

[whimsy] branch master updated: Handle getInfo with an error return

This is an automated email from the ASF dual-hosted git repository.

curcuru 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 96095a7  Handle getInfo with an error return
96095a7 is described below

commit 96095a7b6e54c9196228524d91093622a4722c90
Author: Shane Curcuru <as...@shanecurcuru.org>
AuthorDate: Thu May 31 08:36:50 2018 -0400

    Handle getInfo with an error return
    
    Attempt to fix: TypeError: no implicit conversion of Regexp into Integer
---
 www/status/svn.cgi | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/www/status/svn.cgi b/www/status/svn.cgi
index 991910e..4fa2b56 100755
--- a/www/status/svn.cgi
+++ b/www/status/svn.cgi
@@ -161,7 +161,8 @@ _json do
       log = log + `svn update #{local_path.untaint} 2>&1`
     end
 
-    repository_url = ASF::SVN.getInfo(local_path)[/^URL: (.*)/, 1]
+    info, err = ASF::SVN.getInfo(local_path)
+    repository_url = info[/^URL: (.*)/, 1]
 
   else
     if @action == 'checkout'

-- 
To stop receiving notification emails like this one, please contact
curcuru@apache.org.