Repository: wicket
Updated Branches:
  refs/heads/master 140fea6d4 -> 42bf89653


WICKET-6415 improved exception message when getPage() doesn't find a page.

Print more details about the component that has no parent Page.


Project: http://git-wip-us.apache.org/repos/asf/wicket/repo
Commit: http://git-wip-us.apache.org/repos/asf/wicket/commit/42bf8965
Tree: http://git-wip-us.apache.org/repos/asf/wicket/tree/42bf8965
Diff: http://git-wip-us.apache.org/repos/asf/wicket/diff/42bf8965

Branch: refs/heads/master
Commit: 42bf896538953b302933362ce347e820a72ba40d
Parents: 140fea6
Author: Martin Tzvetanov Grigorov <mgrigo...@apache.org>
Authored: Mon Jul 10 06:19:31 2017 +0200
Committer: Martin Tzvetanov Grigorov <mgrigo...@apache.org>
Committed: Mon Jul 10 06:30:41 2017 +0200

----------------------------------------------------------------------
 wicket-core/src/main/java/org/apache/wicket/Component.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/wicket/blob/42bf8965/wicket-core/src/main/java/org/apache/wicket/Component.java
----------------------------------------------------------------------
diff --git a/wicket-core/src/main/java/org/apache/wicket/Component.java 
b/wicket-core/src/main/java/org/apache/wicket/Component.java
index 0662a0a..aef0293 100644
--- a/wicket-core/src/main/java/org/apache/wicket/Component.java
+++ b/wicket-core/src/main/java/org/apache/wicket/Component.java
@@ -1752,8 +1752,8 @@ public abstract class Component
                if (page == null)
                {
                        // Give up with a nice exception
-                       throw new WicketRuntimeException("No Page found for 
component " + this 
-                                       + " You probably forgot to add it to 
its parent component.");
+                       throw new WicketRuntimeException("No Page found for 
component: " + this.toString(true)
+                                       + ". You probably forgot to add it to 
its parent component.");
                }
 
                return page;

Reply via email to