will / crystal-pg

a postgres driver for crystal

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

exception.message is nil

Geo-7 opened this issue · comments

Hi
crystal v 0.35
pg version: 0.21.1
exception message is nil, exception cause is not nil

require "db"
require "pg"

begin
    db =DB.open "postgres://username:1234@192.168.0.1/somedb"
rescue ex
    p ex.message
end