Enhance QR code reading & return more relevant error msg - Fixes #244

This commit is contained in:
Bubka
2024-03-22 18:04:44 +01:00
parent 9c8d349e1c
commit 2db5adfe3b
3 changed files with 39 additions and 5 deletions

View File

@@ -45,7 +45,8 @@ class Handler extends ExceptionHandler
$this->renderable(function (InvalidQrCodeException $exception, $request) {
return response()->json([
'message' => 'not a valid QR code', ], 400);
'message' => $exception->getMessage(),
], 400);
});
$this->renderable(function (InvalidSecretException $exception, $request) {