Skip to content

Commit

Permalink
fix: return metadata even if parsing of cff fails
Browse files Browse the repository at this point in the history
  • Loading branch information
EvaMart committed Oct 1, 2024
1 parent de4b6ea commit 7be31a0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/metadataExtractor/helpers/metadata.js
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,9 @@ function parseCitationCFF(citationContent, metadata) {
return metadata;

} catch (error) {
throw new Error(`Error parsing CITATION.cff: ${error.message}`);
// log error
console.error('Error parsing CITATION.cff:', error);
return metadata;
}
}

Expand Down

0 comments on commit 7be31a0

Please sign in to comment.