Skip to content

Commit

Permalink
common-fs2: fix env var substitution for JSON files (close #753)
Browse files Browse the repository at this point in the history
  • Loading branch information
benjben committed Mar 17, 2023
1 parent dbd97f5 commit bcafce0
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ object FileSystem {
.subflatMap { text =>
val either = for {
tsConfig <- Either.catchNonFatal(ConfigFactory.parseString(text)).leftMap(_.getMessage)
tsConfig <- Either.catchNonFatal(tsConfig.resolve()).leftMap(e => s"Can't resolve config: ${e.getMessage}")
tsConfig <- Either.catchNonFatal(fallbacks(tsConfig)).leftMap(_.getMessage)
parsed <- tsConfig.as[A].leftMap(_.show)
} yield parsed
Expand Down

0 comments on commit bcafce0

Please sign in to comment.