Repository: brooklyn-server
Updated Branches:
  refs/heads/master 029c7e830 -> 002be9908


better message when trying to use a method to coerce


Project: http://git-wip-us.apache.org/repos/asf/brooklyn-server/repo
Commit: http://git-wip-us.apache.org/repos/asf/brooklyn-server/commit/b8f62640
Tree: http://git-wip-us.apache.org/repos/asf/brooklyn-server/tree/b8f62640
Diff: http://git-wip-us.apache.org/repos/asf/brooklyn-server/diff/b8f62640

Branch: refs/heads/master
Commit: b8f6264067934f694ab82cf87d7bc1ddb8ff130a
Parents: a2929aa
Author: Alex Heneveld <alex.henev...@cloudsoftcorp.com>
Authored: Thu Aug 30 21:08:01 2018 +0100
Committer: Alex Heneveld <alex.henev...@cloudsoftcorp.com>
Committed: Thu Aug 30 21:08:01 2018 +0100

----------------------------------------------------------------------
 .../java/org/apache/brooklyn/util/core/flags/MethodCoercions.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/brooklyn-server/blob/b8f62640/core/src/main/java/org/apache/brooklyn/util/core/flags/MethodCoercions.java
----------------------------------------------------------------------
diff --git 
a/core/src/main/java/org/apache/brooklyn/util/core/flags/MethodCoercions.java 
b/core/src/main/java/org/apache/brooklyn/util/core/flags/MethodCoercions.java
index a334fa7..a022edf 100644
--- 
a/core/src/main/java/org/apache/brooklyn/util/core/flags/MethodCoercions.java
+++ 
b/core/src/main/java/org/apache/brooklyn/util/core/flags/MethodCoercions.java
@@ -93,7 +93,7 @@ public class MethodCoercions {
                 throw Exceptions.propagate(e);
             }
         } else {
-            return Maybe.absent();
+            return Maybe.absent("No method matching 
'"+methodName+"("+(argument==null ? argument : 
argument.getClass().getName())+")'");
         }
     }
     

Reply via email to