Skip to content

Commit 4dc63ee

Browse files
committed
chore(registry): Add more descriptive error code for common error
1 parent f2f8e1f commit 4dc63ee

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

dev-packages/e2e-tests/registrySetup.ts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,15 @@ export function registrySetup(): void {
8585
},
8686
);
8787

88-
if (publishImageContainerRunProcess.status !== 0) {
89-
throw new Error('Publish Image Container failed.');
88+
const statusCode = publishImageContainerRunProcess.status;
89+
90+
if (statusCode !== 0) {
91+
if (statusCode === 137) {
92+
throw new Error(
93+
`Publish Image Container failed with exit code ${statusCode}, possibly due to memory issues. Consider increasing the memory limit for the container.`,
94+
);
95+
}
96+
throw new Error(`Publish Image Container failed with exit code ${statusCode}`);
9097
}
9198
});
9299

0 commit comments

Comments
 (0)