diff options
author | Jakob Odersky <jakob@driver.xyz> | 2017-09-19 20:07:58 -0700 |
---|---|---|
committer | Jakob Odersky <jakob@driver.xyz> | 2017-09-19 20:07:58 -0700 |
commit | df2d159dc7392e824013846b55cf1bf4b5502c3c (patch) | |
tree | a05500bf80831a28c8347ba25500aaa91f76f126 | |
parent | b9f3ab180253c346664f4f38b418dc96f54bdc31 (diff) | |
download | rest-query-0.3.13.tar.gz rest-query-0.3.13.tar.bz2 rest-query-0.3.13.zip |
Add cause to postgres connection errorsv0.3.13
-rw-r--r-- | src/main/scala/xyz/driver/pdsuicommon/db/PostgresContext.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/scala/xyz/driver/pdsuicommon/db/PostgresContext.scala b/src/main/scala/xyz/driver/pdsuicommon/db/PostgresContext.scala index cbb23d4..7bdfd1b 100644 --- a/src/main/scala/xyz/driver/pdsuicommon/db/PostgresContext.scala +++ b/src/main/scala/xyz/driver/pdsuicommon/db/PostgresContext.scala @@ -28,7 +28,7 @@ object PostgresContext extends PhiLogging { case Success(dataSource) => new PostgresContext(dataSource, settings) case Failure(NonFatal(e)) => logger.error(phi"Can not load dataSource, error: ${Unsafe(e.getClass.getName)}") - throw new IllegalArgumentException("Can not load dataSource from config. Check your database and config") + throw new IllegalArgumentException("Can not load dataSource from config. Check your database and config", e) } } |