mirror of
				https://github.com/optim-enterprises-bv/vault.git
				synced 2025-11-04 04:28:08 +00:00 
			
		
		
		
	Fix nil value panic when Consul returns a user error (#2145)
This commit is contained in:
		@@ -52,7 +52,7 @@ func (b *backend) pathTokenRead(
 | 
			
		||||
		return nil, intErr
 | 
			
		||||
	}
 | 
			
		||||
	if userErr != nil {
 | 
			
		||||
		return logical.ErrorResponse(err.Error()), nil
 | 
			
		||||
		return logical.ErrorResponse(userErr.Error()), nil
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	// Generate a name for the token
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user