diff --git a/build.xml b/build.xml
index 42928a0b42cc63260d2a7b2974f00a455c1c415e..9dac1e174f61669d64bee3bf11d861b74886869d 100644
--- a/build.xml
+++ b/build.xml
@@ -123,7 +123,7 @@
   <target name="composer" description="Install dependencies with Composer">
     <httpget url="https://getcomposer.org/composer.phar" sslVerifyPeer="false" dir="${srcdir}" />
     <echo message="Installing dependencies..." />
-    <exec command="php ${srcdir}/composer.phar install" />
+    <exec command="php ${srcdir}/composer.phar install" passthru="true" checkreturn="true" />
   </target>
 
   <!-- Install and Activate VuFind -->