mirror of
				https://github.com/caddyserver/caddy.git
				synced 2025-11-03 19:17:29 -05:00 
			
		
		
		
	Slightly more helpful parse error message
This commit is contained in:
		
							parent
							
								
									95dce5cdfc
								
							
						
					
					
						commit
						e6c5482b7c
					
				@ -149,7 +149,7 @@ func (d *dispenser) ArgErr() error {
 | 
			
		||||
	if d.Val() == "{" {
 | 
			
		||||
		return d.Err("Unexpected token '{', expecting argument")
 | 
			
		||||
	}
 | 
			
		||||
	return d.Err("Unexpected line ending after '" + d.Val() + "' (missing arguments?)")
 | 
			
		||||
	return d.Err("Wrong argument count or unexpected line ending after '" + d.Val() + "'")
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Err generates a custom parse error with a message of msg.
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user