Skip to content

Commit

Permalink
better error in Usermapper
Browse files Browse the repository at this point in the history
  • Loading branch information
vdebergue committed Sep 21, 2023
1 parent 026f2a7 commit 1b04619
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/org/thp/cortex/services/mappers/SimpleUserMapper.scala
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class SimpleUserMapper(
} yield Fields(Json.obj("login" -> login.toLowerCase, "name" -> name, "roles" -> roles, "organization" -> organization))
fields match {
case JsSuccess(f, _) => Future.successful(f)
case JsError(errors) => Future.failed(AuthenticationError(s"User info fails: ${errors.map(_._1).mkString}"))
case JsError(errors) => Future.failed(AuthenticationError(s"User info fails: ${JsError.toJson(errors)}"))
}
}
}

0 comments on commit 1b04619

Please sign in to comment.