mirror of
https://github.com/iv-org/invidious.git
synced 2025-06-28 09:38:31 +00:00
Update src/invidious.cr
Co-authored-by: Samantaz Fox <coding@samantaz.fr>
This commit is contained in:
parent
8cd9d53fb1
commit
8723fdca06
@ -62,8 +62,8 @@ HMAC_KEY = CONFIG.hmac_key
|
|||||||
|
|
||||||
PG_DB = begin
|
PG_DB = begin
|
||||||
DB.open CONFIG.database_url
|
DB.open CONFIG.database_url
|
||||||
rescue ex
|
rescue exc
|
||||||
puts "Failed to connect to PostgreSQL database: #{ex.cause.try &.message}"
|
puts "Failed to connect to PostgreSQL database: #{exc.cause.try &.message}"
|
||||||
puts "Check your 'config.yml' database settings or PostgreSQL settings."
|
puts "Check your 'config.yml' database settings or PostgreSQL settings."
|
||||||
exit(1)
|
exit(1)
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user