james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From adup...@apache.org
Subject [02/34] james-project git commit: JAMES-2085 Improve method not found JMAP exception log message
Date Wed, 05 Jul 2017 13:59:09 GMT
JAMES-2085 Improve method not found JMAP exception log message


Project: http://git-wip-us.apache.org/repos/asf/james-project/repo
Commit: http://git-wip-us.apache.org/repos/asf/james-project/commit/1eaca586
Tree: http://git-wip-us.apache.org/repos/asf/james-project/tree/1eaca586
Diff: http://git-wip-us.apache.org/repos/asf/james-project/diff/1eaca586

Branch: refs/heads/master
Commit: 1eaca586a14046276972072e647dadfd7a75b069
Parents: bae03df
Author: benwa <btellier@linagora.com>
Authored: Mon Jul 3 10:05:25 2017 +0700
Committer: benwa <btellier@linagora.com>
Committed: Wed Jul 5 17:11:13 2017 +0700

----------------------------------------------------------------------
 .../main/java/org/apache/james/jmap/methods/RequestHandler.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/james-project/blob/1eaca586/server/protocols/jmap/src/main/java/org/apache/james/jmap/methods/RequestHandler.java
----------------------------------------------------------------------
diff --git a/server/protocols/jmap/src/main/java/org/apache/james/jmap/methods/RequestHandler.java
b/server/protocols/jmap/src/main/java/org/apache/james/jmap/methods/RequestHandler.java
index 5dd75de..19a8633 100644
--- a/server/protocols/jmap/src/main/java/org/apache/james/jmap/methods/RequestHandler.java
+++ b/server/protocols/jmap/src/main/java/org/apache/james/jmap/methods/RequestHandler.java
@@ -56,7 +56,7 @@ public class RequestHandler {
         return Optional.ofNullable(methods.get(request.getMethodName()))
                         .map(extractAndProcess(request))
                         .map(jmapResponseWriter::formatMethodResponse)
-                        .orElseThrow(() -> new IllegalStateException("unknown method"));
+                        .orElseThrow(() -> new IllegalStateException("unknown method "
+ request.getMethodName()));
     }
     
     private Function<Method, Stream<JmapResponse>> extractAndProcess(AuthenticatedProtocolRequest
request) {


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message