From 523452a5fb66622d51053dffa9b2e8dd493684db Mon Sep 17 00:00:00 2001 From: eldadfux Date: Sun, 20 Oct 2019 21:30:38 +0300 Subject: [PATCH] Removed debug message --- app/controllers/database.php | 1 - 1 file changed, 1 deletion(-) diff --git a/app/controllers/database.php b/app/controllers/database.php index 778b2cace7..df75b5dc56 100644 --- a/app/controllers/database.php +++ b/app/controllers/database.php @@ -420,7 +420,6 @@ $utopia->post('/v1/database/:collectionId/documents') try { $data = $projectDB->createDocument($data); } catch (AuthorizationException $exception) { - throw new Exception($exception->getMessage(), 400); throw new Exception('Unauthorized action', 401); } catch (StructureException $exception) { throw new Exception('Bad structure. '.$exception->getMessage(), 400);