diff options
author | Josh Soref <[email protected]> | 2022-03-28 21:17:51 -0400 |
---|---|---|
committer | git <[email protected]> | 2024-08-05 08:15:56 +0000 |
commit | 9d86864a6d06a9534dfc8cb55be6c6fcee3ee4a2 (patch) | |
tree | b41e589248926011850df7b409014bbb4fa3ac94 /lib | |
parent | a82976bc9002befdaed3498167136793bed4c0c5 (diff) |
[ruby/uri] Add space after `bad URI`
https://github.com/ruby/uri/commit/9f2c7ed5f2
Diffstat (limited to 'lib')
-rw-r--r-- | lib/uri/rfc2396_parser.rb | 6 | ||||
-rw-r--r-- | lib/uri/rfc3986_parser.rb | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/lib/uri/rfc2396_parser.rb b/lib/uri/rfc2396_parser.rb index 00c66cf042..a56ca34267 100644 --- a/lib/uri/rfc2396_parser.rb +++ b/lib/uri/rfc2396_parser.rb @@ -140,11 +140,11 @@ module URI if !scheme raise InvalidURIError, - "bad URI(absolute but no scheme): #{uri}" + "bad URI (absolute but no scheme): #{uri}" end if !opaque && (!path && (!host && !registry)) raise InvalidURIError, - "bad URI(absolute but no path): #{uri}" + "bad URI (absolute but no path): #{uri}" end when @regexp[:REL_URI] @@ -173,7 +173,7 @@ module URI # server = [ [ userinfo "@" ] hostport ] else - raise InvalidURIError, "bad URI(is not URI?): #{uri}" + raise InvalidURIError, "bad URI (is not URI?): #{uri}" end path = '' if !path && !opaque # (see RFC2396 Section 5.2) diff --git a/lib/uri/rfc3986_parser.rb b/lib/uri/rfc3986_parser.rb index 529ecfa241..cac75a363a 100644 --- a/lib/uri/rfc3986_parser.rb +++ b/lib/uri/rfc3986_parser.rb @@ -78,7 +78,7 @@ module URI begin uri = uri.to_str rescue NoMethodError - raise InvalidURIError, "bad URI(is not URI?): #{uri.inspect}" + raise InvalidURIError, "bad URI (is not URI?): #{uri.inspect}" end uri.ascii_only? or raise InvalidURIError, "URI must be ascii only #{uri.dump}" @@ -127,7 +127,7 @@ module URI m["fragment"] ] else - raise InvalidURIError, "bad URI(is not URI?): #{uri.inspect}" + raise InvalidURIError, "bad URI (is not URI?): #{uri.inspect}" end end |