summaryrefslogtreecommitdiff
path: root/http/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'http/index.php')
-rw-r--r--http/index.php13
1 files changed, 9 insertions, 4 deletions
diff --git a/http/index.php b/http/index.php
index 17613e9..e6474bd 100644
--- a/http/index.php
+++ b/http/index.php
@@ -22,10 +22,15 @@ foreach ($params as $param) {
$parsedParams[$splitParam[0]] = count($splitParam) > 1 ? $plitParam[1] : TRUE;
}
-require_once('../providers/' . $provider . '.php');
-$provider = '\\Providers\\' . $provider;
-$provider = new $provider($feed, $parsedParams);
-$content = $provider->get();
+try {
+ require_once('../providers/' . $provider . '.php');
+ $provider = '\\Providers\\' . $provider;
+ $provider = new $provider($feed, $parsedParams);
+ $content = $provider->get();
+} catch (Exception $e) {
+ print $e->getMessage();
+ die();
+}
require_once('../lib/smarty3/Smarty.class.php');