From 1f37e8b533f5f03980f484b2a2c6f71b75a6465b Mon Sep 17 00:00:00 2001
From: Martynas Sudintas <martynas.sudintas@ongr.io>
Date: Mon, 18 May 2015 11:17:41 +0300
Subject: [PATCH] Added message for RuntimeException in SearchEndpointFactory

---
 SearchEndpoint/SearchEndpointFactory.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/SearchEndpoint/SearchEndpointFactory.php b/SearchEndpoint/SearchEndpointFactory.php
index 430b9e7..d319c65 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]();
-- 
GitLab