You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by mg...@apache.org on 2013/02/06 09:52:00 UTC
[25/38] git commit: Print the incorrect absolute url in the exception
message
Print the incorrect absolute url in the exception message
Project: http://git-wip-us.apache.org/repos/asf/wicket/repo
Commit: http://git-wip-us.apache.org/repos/asf/wicket/commit/d923665c
Tree: http://git-wip-us.apache.org/repos/asf/wicket/tree/d923665c
Diff: http://git-wip-us.apache.org/repos/asf/wicket/diff/d923665c
Branch: refs/heads/reference-guide
Commit: d923665ccc302d77b33418d8f82571b1f74ab350
Parents: f4a8a7e
Author: Martin Tzvetanov Grigorov <mg...@apache.org>
Authored: Thu Jan 31 15:37:04 2013 +0100
Committer: Martin Tzvetanov Grigorov <mg...@apache.org>
Committed: Thu Jan 31 15:37:04 2013 +0100
----------------------------------------------------------------------
.../request/resource/UrlResourceReference.java | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/wicket/blob/d923665c/wicket-core/src/main/java/org/apache/wicket/request/resource/UrlResourceReference.java
----------------------------------------------------------------------
diff --git a/wicket-core/src/main/java/org/apache/wicket/request/resource/UrlResourceReference.java b/wicket-core/src/main/java/org/apache/wicket/request/resource/UrlResourceReference.java
index 0925fc7..4c16c8b 100644
--- a/wicket-core/src/main/java/org/apache/wicket/request/resource/UrlResourceReference.java
+++ b/wicket-core/src/main/java/org/apache/wicket/request/resource/UrlResourceReference.java
@@ -87,7 +87,8 @@ public class UrlResourceReference extends ResourceReference
{
if (contextRelative && url.isAbsolute())
{
- throw new IllegalStateException("An absolute url '{}' cannot be rendered as context relative");
+ throw new IllegalStateException(
+ String.format("An absolute url '%s' cannot be rendered as context relative", url));
}
this.contextRelative = contextRelative;
return this;