diff --git a/module/VuFind/src/VuFind/ILS/Driver/Horizon.php b/module/VuFind/src/VuFind/ILS/Driver/Horizon.php
index b0fdff4b150bbbc93a53f092258f1e7ffa1014ba..8470b9d506ace5f347a20f8186fa55306b22aba6 100644
--- a/module/VuFind/src/VuFind/ILS/Driver/Horizon.php
+++ b/module/VuFind/src/VuFind/ILS/Driver/Horizon.php
@@ -551,9 +551,7 @@ class Horizon extends AbstractBase implements LoggerAwareInterface
                 return $user;
             }
 
-            throw new ILSException(
-                'Unable to login patron ' . $patron['id']
-            );
+            throw new ILSException('Unable to login patron ' . $username);
         } catch (\Exception $e) {
             $this->logError($e->getMessage());
             throw new ILSException($e->getMessage());