mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-03 20:06:08 +01:00 
			
		
		
		
	error handling
This commit is contained in:
		@@ -458,6 +458,7 @@ function findIncludeNoteLinks(content, foundLinks) {
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
function findRelationMapLinks(content, foundLinks) {
 | 
			
		||||
    try {
 | 
			
		||||
        const obj = JSON.parse(content);
 | 
			
		||||
 | 
			
		||||
        for (const note of obj.notes) {
 | 
			
		||||
@@ -467,6 +468,10 @@ function findRelationMapLinks(content, foundLinks) {
 | 
			
		||||
            });
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
    catch (e) {
 | 
			
		||||
        log.error("Could not scan for relation map links: " + e.message);
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
const imageUrlToAttachmentIdMapping = {};
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user