error is coming back nil sometimes
this does not fix the root issue that is causing a nil error
This commit is contained in:
		
							parent
							
								
									af69d1ba97
								
							
						
					
					
						commit
						081107bb82
					
				|  | @ -340,6 +340,9 @@ func (e *Error) Error() string { | |||
| 	} else { | ||||
| 		msgs := []string{} | ||||
| 		for i, err := range e.Errors { | ||||
| 			if err == nil { | ||||
| 				continue | ||||
| 			} | ||||
| 			msgs = append(msgs, fmt.Sprintf("err %d: %v", i, err.Error())) | ||||
| 		} | ||||
| 		cause = fmt.Sprintf("%d errors:\n%s", len(e.Errors), strings.Join(msgs, "\n")) | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue