diff --git a/lib/private/Installer.php b/lib/private/Installer.php
index 8a8ece820777ae91b246b3f18318bcd6cadb4d2c..ab0ef836fbb58656bf81ba0be69e964dc805c2ba 100644
--- a/lib/private/Installer.php
+++ b/lib/private/Installer.php
@@ -107,7 +107,7 @@ class Installer {
 		if(!is_array($info)) {
 			throw new \Exception(
 				$l->t('App "%s" cannot be installed because appinfo file cannot be read.',
-					[$info['name']]
+					[$appId]
 				)
 			);
 		}