diff --git a/config/routes.php b/config/routes.php index 86321d8..d60e1e2 100644 --- a/config/routes.php +++ b/config/routes.php @@ -52,6 +52,7 @@ $cfp = $cfpFactory->createCfp($params, $app->getContainer()['client']); } catch (\Exception $e) { error_log($e->getMessage() . "\n" . $e->getTraceAsString()); + return $response->withStatus(404, 'The CfP could not be created'); } $cpl = new \Callingallpapers\Api\PersistenceLayer\CfpPersistenceLayer( $app->getContainer()['pdo'],