will/crystal-pg

exception.message is nil

Geo-7 opened this issue · 0 comments

Geo-7 commented

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