mirror of
				https://github.com/johnwhitington/cpdf-source.git
				synced 2025-06-05 22:09:39 +02:00 
			
		
		
		
	Turn XMP data failure into warning
This commit is contained in:
		
							
								
								
									
										8
									
								
								cpdf.ml
									
									
									
									
									
								
							
							
						
						
									
										8
									
								
								cpdf.ml
									
									
									
									
									
								
							| @@ -3768,9 +3768,13 @@ let xmp_date date = | ||||
|                 end | ||||
|             | _ -> raise Exit   | ||||
|             end | ||||
|         | _ -> failwith (Printf.sprintf "xmp_date: Malformed date string (no year): %s" date) | ||||
|         | _ -> | ||||
|           Printf.eprintf "xmp_date: Malformed date string (no year): %s\n" date; | ||||
|           make_xmp_date_from_components d | ||||
|         end | ||||
|     | _ -> failwith (Printf.sprintf "xmp_date: Malformed date string (no prefix): %s" date) | ||||
|     | _ -> | ||||
|         Printf.eprintf "xmp_date: Malformed date string (no prefix): %s\n" date; | ||||
|         make_xmp_date_from_components d | ||||
|   with | ||||
|     Exit -> make_xmp_date_from_components d | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user