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: Oops, typo
Date Tue, 02 Jun 2020 21:17:28 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 c76986f  Oops, typo
c76986f is described below

commit c76986f1b1a595d2b51f7fcfb9e0a2d15449ef2a
Author: Sebb <sebb@apache.org>
AuthorDate: Tue Jun 2 22:17:10 2020 +0100

    Oops, typo
---
 lib/whimsy/asf/svn.rb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/whimsy/asf/svn.rb b/lib/whimsy/asf/svn.rb
index 3a9e166..0d2a688 100644
--- a/lib/whimsy/asf/svn.rb
+++ b/lib/whimsy/asf/svn.rb
@@ -567,13 +567,13 @@ module ASF
       else
         uri = URI.parse(path)
         # allow file: URIs for local testing
-        if uri.is_a? URI::FILE or uri.is_a? URI::HTTPS # includes HTTPS
+        if uri.is_a? URI::File or uri.is_a? URI::HTTPS # includes HTTPS
           basename = File.basename(uri.path).untaint
           parentdir = File.dirname(uri.path).untaint
           uri.path = parentdir
           parenturl = uri
         else
-          raise ArgumentError.new("Path #{path} must be a file or URL")
+          raise ArgumentError.new("Path '#{path}' must be a file or URL")
         end
       end
       outputfile = File.join(tmpdir, basename).untaint


Mime
View raw message