createErrorResult creates a ComponentResult with an error
(component app.SnapshotComponent, err error)
| 1845 | |
| 1846 | // createErrorResult creates a ComponentResult with an error |
| 1847 | func createErrorResult(component app.SnapshotComponent, err error) vsa.ComponentResult { |
| 1848 | // Create ValidationResult from error for proper display |
| 1849 | errorResult := createValidationResultFromError(err) |
| 1850 | return vsa.ComponentResult{ |
| 1851 | ComponentName: component.Name, |
| 1852 | ImageRef: component.ContainerImage, |
| 1853 | Result: errorResult, |
| 1854 | Error: err, |
| 1855 | } |
| 1856 | } |
| 1857 | |
| 1858 | // createValidationResultFromError creates a ValidationResult from an error |
| 1859 | // This ensures proper display of VSA status even when validation fails |