mirror of
				https://github.com/caddyserver/caddy.git
				synced 2025-10-31 10:37:24 -04:00 
			
		
		
		
	Rename parse errors to errors during parsing (#1838)
This commit is contained in:
		
							parent
							
								
									0d99751a2f
								
							
						
					
					
						commit
						4cce8c7b6b
					
				| @ -210,9 +210,9 @@ func (d *Dispenser) EOFErr() error { | |||||||
| 	return d.Errf("Unexpected EOF") | 	return d.Errf("Unexpected EOF") | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // Err generates a custom parse error with a message of msg. | // Err generates a custom parse-time error with a message of msg. | ||||||
| func (d *Dispenser) Err(msg string) error { | func (d *Dispenser) Err(msg string) error { | ||||||
| 	msg = fmt.Sprintf("%s:%d - Parse error: %s", d.File(), d.Line(), msg) | 	msg = fmt.Sprintf("%s:%d - Error during parsing: %s", d.File(), d.Line(), msg) | ||||||
| 	return errors.New(msg) | 	return errors.New(msg) | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user