Revision: 21966
          http://sourceforge.net/p/bibdesk/svn/21966
Author:   hofman
Date:     2018-02-19 21:40:05 +0000 (Mon, 19 Feb 2018)
Log Message:
-----------
return error from hummed parser when download failed

Modified Paths:
--------------
    trunk/bibdesk/BDSKHubmedParser.m

Modified: trunk/bibdesk/BDSKHubmedParser.m
===================================================================
--- trunk/bibdesk/BDSKHubmedParser.m    2018-02-19 07:30:39 UTC (rev 21965)
+++ trunk/bibdesk/BDSKHubmedParser.m    2018-02-19 21:40:05 UTC (rev 21966)
@@ -95,7 +95,7 @@
         
         NSArray *bibtexItems = [BDSKBibTeXParser itemsFromString:bibTeXString 
owner:nil error:&error];
         
-        if (bibtexItems != nil) {
+        if ([bibtexItems count] && [error 
isLocalErrorWithCode:kBDSKBibTeXParserFailed] == NO) {
             BibItem *bibtexItem = [bibtexItems objectAtIndex:0];
 
             // Get the fulltext URL:
@@ -105,7 +105,7 @@
         }
     }
     
-    [self didFinishDownload:download findingItems:items withSuccess:YES 
error:nil];
+    [self didFinishDownload:download findingItems:items withSuccess:[items 
count] > 0 error:error];
 }
 
 

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Bibdesk-commit mailing list
Bibdesk-commit@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to