mirror of
				https://github.com/qemu/qemu.git
				synced 2025-10-31 20:44:16 +00:00 
			
		
		
		
	 fab12376d0
			
		
	
	
		fab12376d0
		
	
	
	
	
		
			
			check_if()'s errors don't point to the offending part of the
expression.  For instance:
    tests/qapi-schema/alternate-branch-if-invalid.json:2: 'if' condition ' ' makes no sense
Other check_FOO() do, with the help of a @source argument.  Make
check_if() do that, too.  The example above improves to:
    tests/qapi-schema/alternate-branch-if-invalid.json:2: 'if' condition ' ' of 'data' member 'branch' makes no sense
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20190927134639.4284-23-armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
		
	
			
		
			
				
	
	
		
			3 lines
		
	
	
		
			186 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			3 lines
		
	
	
		
			186 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| tests/qapi-schema/alternate-branch-if-invalid.json: In alternate 'Alt':
 | |
| tests/qapi-schema/alternate-branch-if-invalid.json:2: 'if' condition ' ' of 'data' member 'branch' makes no sense
 |