This is an automated email from the ASF dual-hosted git repository.

btellier pushed a commit to branch web-push-http-code
in repository https://gitbox.apache.org/repos/asf/james-project.git

commit b89907b7c3554cc0517e211a5f7ab785fbcbb9bb
Author: Benoit TELLIER <btell...@linagora.com>
AuthorDate: Mon May 5 20:47:56 2025 +0200

    [ENHANCEMENT] Log http error code upon unexpected exception calling push 
server
---
 .../scala/org/apache/james/jmap/pushsubscription/WebPushClient.scala  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/server/protocols/jmap-rfc-8621/src/main/scala/org/apache/james/jmap/pushsubscription/WebPushClient.scala
 
b/server/protocols/jmap-rfc-8621/src/main/scala/org/apache/james/jmap/pushsubscription/WebPushClient.scala
index 51e487c7bb..2837fcdbd9 100644
--- 
a/server/protocols/jmap-rfc-8621/src/main/scala/org/apache/james/jmap/pushsubscription/WebPushClient.scala
+++ 
b/server/protocols/jmap-rfc-8621/src/main/scala/org/apache/james/jmap/pushsubscription/WebPushClient.scala
@@ -65,9 +65,9 @@ object WebPushClientHeader {
 
 sealed abstract class WebPushException(message: String) extends 
RuntimeException(message)
 
-case class WebPushInvalidRequestException(detailError: String) extends 
WebPushException(s"Bad request when call to Push Server. ${detailError}")
+case class WebPushInvalidRequestException(detailError: String) extends 
WebPushException(s"Bad request when call to Push Server. $detailError")
 
-case class WebPushTemporarilyUnavailableException(detailError: String) extends 
WebPushException(s"Error when call to Push Server. ${detailError}")
+case class WebPushTemporarilyUnavailableException(httpCode: Int, detailError: 
String) extends WebPushException(s"Error when call to Push Server: code 
$httpCode. $detailError")
 
 object DefaultWebPushClient {
   val PUSH_SERVER_ERROR_RESPONSE_MAX_LENGTH: Int = 1024


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@james.apache.org
For additional commands, e-mail: notifications-h...@james.apache.org

Reply via email to