diff --git a/Source/API/script/index.php b/Source/API/script/index.php index a038c8b..b59f9fc 100644 --- a/Source/API/script/index.php +++ b/Source/API/script/index.php @@ -45,7 +45,9 @@ try{ // Run app $app->run(); -}catch (HttpNotFoundException|Exception $e){ - echo "Error :".$e->getMessage(); +}catch (HttpNotFoundException $e){ + echo "Error, not Found : ".$e->getMessage(); +}catch (TypeError $t){ + echo "Error, wrong parameters key, or no parameters write : ".$t->getMessage(); }