ryan 6 часов назад
Родитель
Сommit
9df14e128d
1 измененных файлов с 7 добавлено и 1 удалено
  1. 7 1
      frontendApi/modules/v1/controllers/UserController.php

+ 7 - 1
frontendApi/modules/v1/controllers/UserController.php

@@ -682,7 +682,13 @@ class UserController extends BaseController {
             if ($e instanceof \yii\web\HttpException) {
             if ($e instanceof \yii\web\HttpException) {
                 return static::notice($e->getMessage(), $e->statusCode);
                 return static::notice($e->getMessage(), $e->statusCode);
             }
             }
-            return static::notice('Unable to process guest order.', 500);
+            return static::notice([
+                'event' => 'guestDec_failed',
+                'exception' => get_class($e),
+                'message' => $e->getMessage(),
+                'file' => basename($e->getFile()),
+                'line' => $e->getLine(),
+            ], 500);
         }
         }
     }
     }