Skip to content

Commit e5dfd98

Browse files
authored
Add the error message to the failed token parse response (#88)
1 parent 85dcfc1 commit e5dfd98

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Api/UserControl.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -437,8 +437,8 @@ private function validateMarketToken(): void
437437
);
438438
} catch (RequiredConstraintsViolated $e) {
439439
throw new AccessDeniedException(t('Access denied, %s', $e->getMessage()));
440-
} catch (\Throwable) {
441-
throw new AccessDeniedException(t('Access denied, unable to validate token.'));
440+
} catch (\Throwable $e) {
441+
throw new AccessDeniedException(t('Access denied, unable to validate token. %s', $e->getMessage()));
442442
}
443443
}
444444
}

0 commit comments

Comments
 (0)