Skip to content

Commit

Permalink
address review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
benjben committed Feb 4, 2022
1 parent 09cf71e commit 01a22d7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ final case class CurrencyConversionEnrichment[F[_]: Monad](
case Left(t) =>
val sw = new StringWriter
t.printStackTrace(new PrintWriter(sw))
s"an error happened while converting the currency: ${t.getMessage}\n${sw.toString}"
s"an error happened while converting the currency: ${t.getMessage}\n${sw.toString}".substring(0, 511)
case Right(e) =>
val errorType = e.errorType.getClass.getSimpleName.replace("$", "")
s"Open Exchange Rates error, type: [$errorType], message: [${e.errorMessage}]"
Expand Down

0 comments on commit 01a22d7

Please sign in to comment.