mirror of
				https://github.com/SSLMate/certspotter.git
				synced 2025-07-03 10:47:17 +02:00 
			
		
		
		
	Decapitalize some error messages
This commit is contained in:
		
							parent
							
								
									a4048f47f8
								
							
						
					
					
						commit
						3e811e86d7
					
				
							
								
								
									
										4
									
								
								asn1.go
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								asn1.go
									
									
									
									
									
								
							| @ -46,7 +46,7 @@ func decodeASN1String(value *asn1.RawValue) (string, error) { | |||||||
| 		if value.Tag == 12 { | 		if value.Tag == 12 { | ||||||
| 			// UTF8String | 			// UTF8String | ||||||
| 			if !utf8.Valid(value.Bytes) { | 			if !utf8.Valid(value.Bytes) { | ||||||
| 				return "", errors.New("Malformed UTF8String") | 				return "", errors.New("malformed UTF8String") | ||||||
| 			} | 			} | ||||||
| 			return string(value.Bytes), nil | 			return string(value.Bytes), nil | ||||||
| 		} else if value.Tag == 19 || value.Tag == 22 || value.Tag == 20 || value.Tag == 26 { | 		} else if value.Tag == 19 || value.Tag == 22 || value.Tag == 20 || value.Tag == 26 { | ||||||
| @ -74,5 +74,5 @@ func decodeASN1String(value *asn1.RawValue) (string, error) { | |||||||
| 			return stringFromUint32Slice(runes), nil | 			return stringFromUint32Slice(runes), nil | ||||||
| 		} | 		} | ||||||
| 	} | 	} | ||||||
| 	return "", errors.New("Not a string") | 	return "", errors.New("not a string") | ||||||
| } | } | ||||||
|  | |||||||
| @ -253,5 +253,5 @@ func decodeASN1Time(value *asn1.RawValue) (time.Time, error) { | |||||||
| 			return parseGeneralizedTime(value.Bytes) | 			return parseGeneralizedTime(value.Bytes) | ||||||
| 		} | 		} | ||||||
| 	} | 	} | ||||||
| 	return time.Time{}, errors.New("Not a time value") | 	return time.Time{}, errors.New("not a time value") | ||||||
| } | } | ||||||
|  | |||||||
| @ -112,7 +112,7 @@ func Unmarshal(jsonBytes []byte) (*List, error) { | |||||||
| 		return nil, err | 		return nil, err | ||||||
| 	} | 	} | ||||||
| 	if err := list.Validate(); err != nil { | 	if err := list.Validate(); err != nil { | ||||||
| 		return nil, fmt.Errorf("Invalid log list: %s", err) | 		return nil, fmt.Errorf("invalid log list: %s", err) | ||||||
| 	} | 	} | ||||||
| 	return list, nil | 	return list, nil | ||||||
| } | } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Andrew Ayer
						Andrew Ayer