diff --git a/src/Components/ImagesTable/Status.tsx b/src/Components/ImagesTable/Status.tsx index b696419e2f..ac869bcd16 100644 --- a/src/Components/ImagesTable/Status.tsx +++ b/src/Components/ImagesTable/Status.tsx @@ -288,19 +288,27 @@ type ErrorStatusPropTypes = { const ErrorStatus = ({ icon, text, error }: ErrorStatusPropTypes) => { let reason = ''; + const detailsArray: string[] = []; if (typeof error === 'string') { reason = error; } else { if (error.reason) { reason = error.reason; } - if (error.details?.reason) { - if (reason !== '') { - reason = `${reason}\n\n${error.details?.reason}`; - } else { - reason = error.details.reason; + if (Array.isArray(error.details)) { + for (const line in error.details) { + detailsArray.push(`${error.details[line]}`); } } + if (typeof error.details === 'string') { + detailsArray.push(error.details); + } + if (error.details?.reason) { + detailsArray.push(`${error.details.reason}`); + } + if (error.details?.s) { + detailsArray.push(`${error.details.s}`); + } } return ( @@ -316,10 +324,22 @@ const ErrorStatus = ({ icon, text, error }: ErrorStatusPropTypes) => {
-

{reason}

+
+
{reason}
+
+
+                        {detailsArray.join('\n')}
+                        
+                      
+
+