Skip to content

Commit

Permalink
fix: better messaging when db_postgres test cannot run
Browse files Browse the repository at this point in the history
  • Loading branch information
tucats committed Jan 1, 2025
1 parent 4f190de commit 9da5410
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/io/db_postgres.ego
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@
// Is there a working database we can test against?
_, e := d.Query("select 0 where 1=0")
if e != nil {
fmt.Println("Postgres server tests will not be run, server unavailable")
fmt.Println(e)
text := strings.TrimPrefix(e.Error(), "pq: ")
fmt.Println("Postgres server tests will not be run, server unavailable, " + text)

return
} else {

Expand Down

0 comments on commit 9da5410

Please sign in to comment.