mirror of
				https://github.com/Z3Prover/z3
				synced 2025-11-04 05:19:11 +00:00 
			
		
		
		
	extend error type message with more information - display the arguments that are passed
This commit is contained in:
		
							parent
							
								
									4c1a3fab64
								
							
						
					
					
						commit
						78f9e6b31a
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -2250,7 +2250,9 @@ app * ast_manager::mk_app(func_decl * decl, unsigned num_args, expr * const * ar
 | 
			
		|||
    if (type_error) {
 | 
			
		||||
        std::ostringstream buffer;
 | 
			
		||||
        buffer << "Wrong number of arguments (" << num_args
 | 
			
		||||
               << ") passed to function " << mk_pp(decl, *this);
 | 
			
		||||
               << ") passed to function " << mk_pp(decl, *this) << " ";
 | 
			
		||||
        for (unsigned i = 0; i < num_args; ++i)
 | 
			
		||||
            buffer << "\narg: " << mk_pp(args[i], *this) << "\n";
 | 
			
		||||
        throw ast_exception(std::move(buffer).str());
 | 
			
		||||
    }
 | 
			
		||||
    app * r = nullptr;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue