Skip to content

Commit

Permalink
Merge pull request #44 from i10416/improve/show-error-msg-in-exception
Browse files Browse the repository at this point in the history
improve: error reason was missing in exception
  • Loading branch information
i10416 authored Nov 7, 2023
2 parents 966775e + b960aee commit aaba46c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dbc4s-api/shared/src/main/scala/dbc4s/api/DBCClient.scala
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ abstract class DBCClient[F[_]: Async] {
for {
r <- err.as[ErrorResponse]
_ <- Console.make[F].error(r)
} yield new Exception("err")
} yield new Exception(s"${r.error_code}: ${r.message}")
})
}
}

0 comments on commit aaba46c

Please sign in to comment.