mirror of
https://github.com/iv-org/invidious.git
synced 2025-12-24 22:58:30 -06:00
improve
This commit is contained in:
parent
a48e6ca65b
commit
2304b5abf0
@ -326,12 +326,13 @@ class Config
|
||||
puts "Config (Hint): Remove the port from your domain: ':#{port}'"
|
||||
exit(1)
|
||||
end
|
||||
if scheme = parsed_domain.scheme.presence
|
||||
puts "Config (Hint): Remove the scheme from your domain: '#{scheme}'"
|
||||
if (path_items = parsed_domain.path.split("/")).size > 1
|
||||
path = path_items[1..].join("/")
|
||||
puts "Config (Hint): Remove the path from your domain: '/#{path}'"
|
||||
exit(1)
|
||||
end
|
||||
if host = parsed_domain.host.presence
|
||||
puts "Config (Hint): Did you mean #{host}?"
|
||||
if scheme = parsed_domain.scheme.presence
|
||||
puts "Config (Hint): Remove the scheme from your domain: '#{scheme}://'"
|
||||
exit(1)
|
||||
end
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user