Skip to content

Commit

Permalink
feature/Tweak error logging during authtentication
Browse files Browse the repository at this point in the history
  • Loading branch information
constantine2nd committed Aug 22, 2023
1 parent e53cff6 commit 02668d5
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions obp-api/src/main/scala/code/api/util/APIUtil.scala
Original file line number Diff line number Diff line change
Expand Up @@ -3233,6 +3233,15 @@ object APIUtil extends MdcLoggable with CustomJsonFormats{
throw JsonResponseException(jsonResponse)
case _ => it
}
} map { result =>
result._1 match {
case Failure(msg, t, c) =>
(
fullBoxOrException(result._1 ~> APIFailureNewStyle(msg, 401, Some(cc.toLight))),
result._2
)
case _ => result
}
}
}

Expand Down

0 comments on commit 02668d5

Please sign in to comment.