mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-10-31 13:01:31 +08:00 
			
		
		
		
	error handling
This commit is contained in:
		
							parent
							
								
									305d28b5b3
								
							
						
					
					
						commit
						b6c7e2e48f
					
				| @ -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 = {}; | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 zadam
						zadam