@@ -458,7 +458,7 @@ func parseResourceAnnotations(annotations map[string]string) (corev1.ResourceLis
458
458
459
459
cpuResources , err := resource .ParseQuantity (cpu )
460
460
if err != nil {
461
- return nil , fmt .Errorf ("unable to parse cpu resources: %s " , cpu )
461
+ return nil , fmt .Errorf ("unable to parse cpu resources: %q: %w " , cpu , err )
462
462
}
463
463
memory , ok := annotations [resourceMemoryAnnotation ]
464
464
if ! ok {
@@ -467,7 +467,7 @@ func parseResourceAnnotations(annotations map[string]string) (corev1.ResourceLis
467
467
468
468
memoryResources , err := resource .ParseQuantity (memory )
469
469
if err != nil {
470
- return nil , fmt .Errorf ("unable to parse cpu resources: %s " , cpu )
470
+ return nil , fmt .Errorf ("unable to parse memory resources: %q: %w " , memory , err )
471
471
}
472
472
ephemeralStorage , ok := annotations [resourceEphemeralStorageAnnotation ]
473
473
if ! ok {
@@ -476,7 +476,7 @@ func parseResourceAnnotations(annotations map[string]string) (corev1.ResourceLis
476
476
477
477
ephemeralStorageResources , err := resource .ParseQuantity (ephemeralStorage )
478
478
if err != nil {
479
- return nil , fmt .Errorf ("unable to parse cpu resources: %s " , cpu )
479
+ return nil , fmt .Errorf ("unable to parse ephemeral storage resources: %q: %w " , ephemeralStorage , err )
480
480
}
481
481
482
482
return corev1.ResourceList {
0 commit comments