mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
catch name resolution error for custom domain check
This commit is contained in:
parent
682f450561
commit
51d65653e8
1 changed files with 3 additions and 0 deletions
|
@ -164,6 +164,9 @@ post '/settings/:username/custom_domain' do
|
|||
else
|
||||
raise e
|
||||
end
|
||||
rescue Socket::ResolutionError
|
||||
flash[:error] = 'Temporary failure in name resolution, please try again later.'
|
||||
redirect "/settings/#{@site.username}#custom_domain"
|
||||
end
|
||||
|
||||
if @site.valid?
|
||||
|
|
Loading…
Add table
Reference in a new issue