summaryrefslogtreecommitdiffstats
path: root/webkit
diff options
context:
space:
mode:
Diffstat (limited to 'webkit')
-rw-r--r--webkit/tools/test_shell/test_webview_delegate.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/webkit/tools/test_shell/test_webview_delegate.cc b/webkit/tools/test_shell/test_webview_delegate.cc
index e9d60e2..28e6a29 100644
--- a/webkit/tools/test_shell/test_webview_delegate.cc
+++ b/webkit/tools/test_shell/test_webview_delegate.cc
@@ -223,10 +223,11 @@ void TestWebViewDelegate::DidFailProvisionalLoadWithError(
bool replace = extra_data && extra_data->pending_page_id != -1;
scoped_ptr<WebRequest> request(failed_request.Clone());
- request->SetURL(GURL("testshell-error:"));
std::string error_text =
- StringPrintf("Error loading url: %d", error.GetErrorCode());
+ StringPrintf("Error %d when loading url %s", error.GetErrorCode(),
+ request->GetURL().spec().c_str());
+ request->SetURL(GURL("testshell-error:"));
frame->LoadAlternateHTMLString(request.get(), error_text,
error.GetFailedURL(), replace);