Permalink
Browse files

Improved error message

  • Loading branch information...
1 parent 7d59204 commit 1d96bdfc807a643a9ed145024297f133fc48fda7 @escoz committed Aug 22, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 quickdialog/QWebViewController.m
@@ -124,8 +124,8 @@ - (void)webView:(UIWebView *)webView didFailLoadWithError:(NSError *)error {
if (error.code==-999)
return;
self.navigationItem.rightBarButtonItem = nil;
- self.title = @"Error";
- [_webView loadHTMLString:[NSString stringWithFormat:@"<html style='margin:2em'><font size=+5>%@</font></html>", [error localizedDescription]] baseURL:nil];
+ self.navigationItem.title = @"Error";
+ [_webView loadHTMLString:[NSString stringWithFormat:@"<html style='margin:2em'><p><font size=+5>Could not open page %@.</font></p><br/><p><font size=+5>%@</font></p></html>",_url, [error localizedDescription]] baseURL:nil];
}

0 comments on commit 1d96bdf

Please sign in to comment.