lib/do_postgres.rb in do_postgres-0.2.2 vs lib/do_postgres.rb in do_postgres-0.2.3
- old
+ new
@@ -16,10 +16,10 @@
end
def open
@db = Postgres_c.PQconnectdb(@connection_string)
if Postgres_c.PQstatus(@db) != Postgres_c::CONNECTION_OK
- raise ConnectionFailed, "The connection with connection string #{@connection_string} failed\n#{Postgres_c.PQerrorMessage(@db)}"
+ raise ConnectionFailed, "Unable to connect to database with provided connection string. \n#{Postgres_c.PQerrorMessage(@db)}"
end
@state = STATE_OPEN
true
end
\ No newline at end of file