add error logging on missing shape to ease debugging
This commit is contained in:
		
							parent
							
								
									ac30998fa4
								
							
						
					
					
						commit
						6440a58932
					
				
					 1 changed files with 4 additions and 1 deletions
				
			
		|  | @ -281,7 +281,10 @@ fn shapes(allocator: std.mem.Allocator, map: anytype) ![]ShapeInfo { | ||||||
|             .namespace = id_info.namespace, |             .namespace = id_info.namespace, | ||||||
|             .name = id_info.name, |             .name = id_info.name, | ||||||
|             .member = id_info.member, |             .member = id_info.member, | ||||||
|             .shape = try getShape(allocator, kv.value_ptr.*), |             .shape = getShape(allocator, kv.value_ptr.*) catch |e| { | ||||||
|  |                 std.log.err("Caught error parsing shape with name {s}: {}", .{ id_info.name, e }); | ||||||
|  |                 return e; | ||||||
|  |             }, | ||||||
|         }); |         }); | ||||||
|     } |     } | ||||||
|     // This seems to be a synonym for the simple type "string" |     // This seems to be a synonym for the simple type "string" | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue