Browse Source

1feature/EK-5822

ryan 6 hours ago
parent
commit
9df14e128d
1 changed files with 7 additions and 1 deletions
  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) {
                 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);
         }
     }