diff --git a/src/Composer/Console/Application.php b/src/Composer/Console/Application.php
index 430f7816c..252ee16b7 100644
--- a/src/Composer/Console/Application.php
+++ b/src/Composer/Console/Application.php
@@ -296,7 +296,7 @@ class Application extends BaseApplication
}
if (false !== strpos($exception->getMessage(), 'fork failed - Cannot allocate memory')) {
- $io->writeError('The following exception is caused by a lack of memory and not having swap configured', true, IOInterface::QUIET);
+ $io->writeError('The following exception is caused by a lack of memory or swap, or not having swap configured', true, IOInterface::QUIET);
$io->writeError('Check https://getcomposer.org/doc/articles/troubleshooting.md#proc-open-fork-failed-errors for details', true, IOInterface::QUIET);
}
}