Skip to content
Snippets Groups Projects
Commit 1f37e8b5 authored by Martynas Sudintas's avatar Martynas Sudintas
Browse files

Added message for RuntimeException in SearchEndpointFactory

parent 26a92273
No related branches found
No related tags found
No related merge requests found
......@@ -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]();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment