Revision: 11509
http://bibdesk.svn.sourceforge.net/bibdesk/?rev=11509&view=rev
Author: amaxwell
Date: 2007-11-09 11:24:43 -0800 (Fri, 09 Nov 2007)
Log Message:
-----------
Display NSErrors to the user instead of failing silently.
Modified Paths:
--------------
trunk/bibdesk/BDSKWebGroupViewController.m
Modified: trunk/bibdesk/BDSKWebGroupViewController.m
===================================================================
--- trunk/bibdesk/BDSKWebGroupViewController.m 2007-11-09 19:21:52 UTC (rev
11508)
+++ trunk/bibdesk/BDSKWebGroupViewController.m 2007-11-09 19:24:43 UTC (rev
11509)
@@ -180,6 +180,8 @@
NSError *error = nil;
NSArray *newPubs = [BDSKWebParser itemsFromDocument:domDocument
fromURL:url error:&error];
+ if (nil == newPubs)
+ [NSApp presentError:error];
if (frame == loadingWebFrame) {
[self setRetrieving:NO];
@@ -196,6 +198,7 @@
[group addPublications:nil];
loadingWebFrame = nil;
}
+ [NSApp presentError:error];
}
- (void)webView:(WebView *)sender didFailLoadWithError:(NSError *)error
forFrame:(WebFrame *)frame{
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit