From 6a9f7eddc15f4f77dec0411e84a10703a551c875 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=91cze=20Bence?= Date: Thu, 4 Jun 2020 00:13:57 +0200 Subject: [PATCH] MAPG-110 make error response more for machines --- src/Controller/PositionController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Controller/PositionController.php b/src/Controller/PositionController.php index e248446..e2f7d7b 100644 --- a/src/Controller/PositionController.php +++ b/src/Controller/PositionController.php @@ -17,7 +17,7 @@ class PositionController $mapId = (int) $parameters['mapId']; if (!isset($_SESSION['state']) || $_SESSION['state']['mapId'] !== $mapId) { - $data = ['error' => 'No valid session found!']; + $data = ['error' => 'no_session_found']; return new JsonContent($data); } @@ -55,7 +55,7 @@ class PositionController $mapId = (int) $parameters['mapId']; if (!isset($_SESSION['state']) || $_SESSION['state']['mapId'] !== $mapId) { - $data = ['error' => 'No valid session found!']; + $data = ['error' => 'no_session_found']; return new JsonContent($data); }