diff --git a/SearchEndpoint/SearchEndpointFactory.php b/SearchEndpoint/SearchEndpointFactory.php
index 430b9e78d875b2e2bd5f5a106c129446f81d0fcd..d319c6527c799dd62471898872d867d4e1911548 100644
--- a/SearchEndpoint/SearchEndpointFactory.php
+++ b/SearchEndpoint/SearchEndpointFactory.php
@@ -41,7 +41,7 @@ class SearchEndpointFactory
     public static function get($type)
     {
         if (!array_key_exists($type, self::$endpoints)) {
-            throw new \RuntimeException();
+            throw new \RuntimeException('Endpoint does not exist.');
         }
 
         return new self::$endpoints[$type]();